mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 549747 - Fix a bad null check in WebGLContext::ValidateProgram. r=vlad
This commit is contained in:
parent
90f17b8799
commit
d7e8315247
@ -2160,7 +2160,7 @@ WebGLContext::UseProgram(nsIWebGLProgram *prog)
|
||||
NS_IMETHODIMP
|
||||
WebGLContext::ValidateProgram(nsIWebGLProgram *prog)
|
||||
{
|
||||
if (!prog && static_cast<WebGLProgram*>(prog)->Deleted())
|
||||
if (!prog || static_cast<WebGLProgram*>(prog)->Deleted())
|
||||
return ErrorMessage("glValidateProgram: program is null or has already been deleted!");
|
||||
|
||||
GLuint program = static_cast<WebGLProgram*>(prog)->GLName();
|
||||
|
Loading…
Reference in New Issue
Block a user