New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 593666 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

NULL pointers used in gl bindings without any checks

Project Member Reported by martina....@intel.com, Mar 10 2016

Issue description

The GL functions in gl_binding [1] and similar files can be set to a NULL pointer if the function is not defined on the given GL version, but there is no check for this case. Adding some DCHECKs for at least the debug version of the calls could make debugging of segfaults of this kind much easier. It personally happened to me that the program was behaving rather oddly under gdb when a segfault was occurring because of a NULL pointer and a DCHECK would have saved me a lot of time. 


[1] https://code.google.com/p/chromium/codesearch#chromium/src/ui/gl/gl_bindings_autogen_gl.cc&l=2038
 
Components: Internals>GPU>Internals
Status: Started (was: Untriaged)
Status: Fixed (was: Started)

Sign in to add a comment