mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 848023 - Put back the override of fGetIntegerv for max texture sizes. r=bjacob
This commit is contained in:
parent
9cff8595a2
commit
1a199e96f4
@ -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