mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals from /dom
This commit is contained in:
parent
434b3269fb
commit
d29e4f8306
71 changed files with 100 additions and 5342 deletions
|
|
@ -689,24 +689,6 @@ WebGLProgram::GetFragDataLocation(const nsAString& userName_wide) const
|
|||
gl->MakeCurrent();
|
||||
|
||||
const NS_LossyConvertUTF16toASCII userName(userName_wide);
|
||||
#ifdef XP_MACOSX
|
||||
if (gl->WorkAroundDriverBugs()) {
|
||||
// OSX doesn't return locs for indexed names, just the base names.
|
||||
// Indicated by failure in: conformance2/programs/gl-get-frag-data-location.html
|
||||
bool isArray;
|
||||
size_t arrayIndex;
|
||||
nsCString baseUserName;
|
||||
if (!ParseName(userName, &baseUserName, &isArray, &arrayIndex))
|
||||
return -1;
|
||||
|
||||
if (arrayIndex >= mContext->mImplMaxDrawBuffers)
|
||||
return -1;
|
||||
|
||||
const auto baseLoc = GetFragDataByUserName(this, baseUserName);
|
||||
const auto loc = baseLoc + GLint(arrayIndex);
|
||||
return loc;
|
||||
}
|
||||
#endif
|
||||
return GetFragDataByUserName(this, userName);
|
||||
}
|
||||
|
||||
|
|
@ -770,11 +752,6 @@ WebGLProgram::GetProgramParameter(GLenum pname) const
|
|||
return JS::BooleanValue(IsLinked());
|
||||
|
||||
case LOCAL_GL_VALIDATE_STATUS:
|
||||
#ifdef XP_MACOSX
|
||||
// See comment in ValidateProgram.
|
||||
if (gl->WorkAroundDriverBugs())
|
||||
return JS::BooleanValue(true);
|
||||
#endif
|
||||
// Todo: Implement this in our code.
|
||||
return JS::BooleanValue(bool(GetProgramiv(gl, mGLName, pname)));
|
||||
|
||||
|
|
@ -1377,17 +1354,6 @@ WebGLProgram::ValidateProgram() const
|
|||
{
|
||||
mContext->MakeContextCurrent();
|
||||
gl::GLContext* gl = mContext->gl;
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// See bug 593867 for NVIDIA and bug 657201 for ATI. The latter is confirmed
|
||||
// with Mac OS 10.6.7.
|
||||
if (gl->WorkAroundDriverBugs()) {
|
||||
mContext->GenerateWarning("validateProgram: Implemented as a no-op on"
|
||||
" Mac to work around crashes.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
gl->fValidateProgram(mGLName);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue