Bug 922810 - Fix the build on compilers not supporting strong enums - r=jgilbert

This commit is contained in:
Benoit Jacob 2013-10-11 09:16:43 -04:00
parent b33fab2ccf
commit 1a4316a1f6

View File

@ -256,14 +256,14 @@ WebGLContext::BindTexture(GLenum target, WebGLTexture *newTex)
return ErrorInvalidEnumInfo("bindTexture: target", target);
}
WebGLTextureFakeBlackStatus currentTexFakeBlackStatus
= (*currentTexPtr)
? (*currentTexPtr)->ResolvedFakeBlackStatus()
: WebGLTextureFakeBlackStatus::NotNeeded;
WebGLTextureFakeBlackStatus newTexFakeBlackStatus
= newTex
? newTex->ResolvedFakeBlackStatus()
: WebGLTextureFakeBlackStatus::NotNeeded;
WebGLTextureFakeBlackStatus currentTexFakeBlackStatus = WebGLTextureFakeBlackStatus::NotNeeded;
if (*currentTexPtr) {
currentTexFakeBlackStatus = (*currentTexPtr)->ResolvedFakeBlackStatus();
}
WebGLTextureFakeBlackStatus newTexFakeBlackStatus = WebGLTextureFakeBlackStatus::NotNeeded;
if (newTex) {
newTexFakeBlackStatus = newTex->ResolvedFakeBlackStatus();
}
*currentTexPtr = newTex;