Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool __stdcall glBindTexImage(egl::Surface *surface)
- {
- ....
- gl::Texture2D *textureObject = context->getTexture2D();
- if (textureObject->isImmutable())
- {
- return false;
- }
- if (textureObject)
- {
- textureObject->bindTexImage(surface);
- }
- ....
- }
- This suspicious code was found in Angle project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'textureObject' pointer was utilized before it was verified against nullptr. Check lines: 7088, 7093. libglesv2.cpp 7088
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment