b=592106; correctly update GL context format; r=jrmuizel

This commit is contained in:
Vladimir Vukicevic 2010-09-05 16:37:51 -04:00
parent f858e28089
commit 74b5baf759

View File

@ -747,12 +747,12 @@ GLContext::UpdateActualFormat()
{
ContextFormat nf;
fGetIntegerv(LOCAL_GL_RED_BITS, (GLint*) &nf.alpha);
fGetIntegerv(LOCAL_GL_GREEN_BITS, (GLint*) &nf.alpha);
fGetIntegerv(LOCAL_GL_BLUE_BITS, (GLint*) &nf.alpha);
fGetIntegerv(LOCAL_GL_RED_BITS, (GLint*) &nf.red);
fGetIntegerv(LOCAL_GL_GREEN_BITS, (GLint*) &nf.green);
fGetIntegerv(LOCAL_GL_BLUE_BITS, (GLint*) &nf.blue);
fGetIntegerv(LOCAL_GL_ALPHA_BITS, (GLint*) &nf.alpha);
fGetIntegerv(LOCAL_GL_DEPTH_BITS, (GLint*) &nf.depth);
fGetIntegerv(LOCAL_GL_STENCIL_BITS, (GLint*) &nf.depth);
fGetIntegerv(LOCAL_GL_STENCIL_BITS, (GLint*) &nf.stencil);
mActualFormat = nf;
}