mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 848023 - Put back the override of fGetIntegerv for max texture sizes. r=bjacob
This commit is contained in:
parent
fbac5da37b
commit
f7fa41fcf0
@ -548,22 +548,40 @@ public:
|
||||
}
|
||||
|
||||
void fGetIntegerv(GLenum pname, GLint *params) {
|
||||
if (!mScreen) {
|
||||
raw_fGetIntegerv(pname, params);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pname)
|
||||
{
|
||||
// LOCAL_GL_FRAMEBUFFER_BINDING is equal to
|
||||
// LOCAL_GL_DRAW_FRAMEBUFFER_BINDING_EXT,
|
||||
// so we don't need two cases.
|
||||
case LOCAL_GL_DRAW_FRAMEBUFFER_BINDING_EXT:
|
||||
*params = mScreen->GetDrawFB();
|
||||
if (mScreen) {
|
||||
*params = mScreen->GetDrawFB();
|
||||
} else {
|
||||
raw_fGetIntegerv(pname, params);
|
||||
}
|
||||
break;
|
||||
|
||||
case LOCAL_GL_READ_FRAMEBUFFER_BINDING_EXT:
|
||||
*params = mScreen->GetReadFB();
|
||||
if (mScreen) {
|
||||
*params = mScreen->GetReadFB();
|
||||
} else {
|
||||
raw_fGetIntegerv(pname, params);
|
||||
}
|
||||
break;
|
||||
|
||||
case LOCAL_GL_MAX_TEXTURE_SIZE:
|
||||
MOZ_ASSERT(mMaxTextureSize>0);
|
||||
*params = mMaxTextureSize;
|
||||
break;
|
||||
|
||||
case LOCAL_GL_MAX_CUBE_MAP_TEXTURE_SIZE:
|
||||
MOZ_ASSERT(mMaxCubeMapTextureSize>0);
|
||||
*params = mMaxCubeMapTextureSize;
|
||||
break;
|
||||
|
||||
case LOCAL_GL_MAX_RENDERBUFFER_SIZE:
|
||||
MOZ_ASSERT(mMaxRenderbufferSize>0);
|
||||
*params = mMaxRenderbufferSize;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user