When printing this debug message, check for valid extension string get

function First.

NB: Fixes Coverity CID1039394

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 14:30:41 +01:00
parent 7bf6ba1f67
commit 6229a871de
1 changed files with 2 additions and 1 deletions

View File

@ -1336,7 +1336,8 @@ evgl_engine_init(void *eng_data, EVGL_Interface *efunc)
else
ERR("Proc address get function not available. Extension not initialized.");
DBG("GLUE Extension String: %s", efunc->ext_string_get(eng_data));
if (efunc->ext_string_get)
DBG("GLUE Extension String: %s", efunc->ext_string_get(eng_data));
DBG("GL Extension String: %s", glGetString(GL_EXTENSIONS));
// Surface Caps