mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 922810 - Fix the build on compilers not supporting strong enums - r=jgilbert
This commit is contained in:
parent
b33fab2ccf
commit
1a4316a1f6
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user