forked from enlightenment/efl
evas-gl: Fix dereference after null check
Coverity reports that 'ctx' may be NULL here and we should check it before usage (as is done above). Coverity CID1339785 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
07da0ba5d7
commit
bb24aab001
|
@ -143,7 +143,7 @@ _internal_resource_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context
|
|||
{
|
||||
// Do Nothing
|
||||
}
|
||||
else if (ctx->pixmap_image_supported) // Pixmap surface
|
||||
else if ((ctx) && (ctx->pixmap_image_supported)) // Pixmap surface
|
||||
{
|
||||
if (!sfc->indirect_sfc)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue