evas/gl_x11: Cast GLubyte to const char for strstr

The GLubyte we are getting back here are strings we want to search
in with strstr. Cast is only to avoid warnings.
This commit is contained in:
Stefan Schmidt 2014-03-19 11:48:46 +01:00
parent 6a66af39cb
commit 80497d75bc
1 changed files with 3 additions and 3 deletions

View File

@ -735,9 +735,9 @@ gl_extn_veto(Render_Engine *re)
// strings will be like the following:
// OpenGL vendor string: Intel Open Source Technology Center
// OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Desktop
if (((vendor) && (strstr(vendor, "Intel"))) &&
((renderer) && (strstr(renderer, "Mesa"))) &&
((renderer) && (strstr(renderer, "Intel")))
if (((vendor) && (strstr((const char *)vendor, "Intel"))) &&
((renderer) && (strstr((const char *)renderer, "Mesa"))) &&
((renderer) && (strstr((const char *)renderer, "Intel")))
)
extn_have_y_inverted = 0;
}