Pacify some GCC strict-aliasing compiler warnings.

--HG--
extra : rebase_source : 0f01f82ed177f327ec971d11c60b1516210d2561
This commit is contained in:
Ryan C. Gordon 2016-11-23 21:52:48 -05:00
parent fafc8c773a
commit 7fe9264adf
3 changed files with 6 additions and 6 deletions

View file

@ -1068,7 +1068,7 @@ GLES2_CacheShader(SDL_Renderer *renderer, GLES2_ShaderType type, SDL_BlendMode b
/* Compile or load the selected shader instance */
entry->id = data->glCreateShader(instance->type);
if (instance->format == (GLenum)-1) {
data->glShaderSource(entry->id, 1, (const char **)&instance->data, NULL);
data->glShaderSource(entry->id, 1, (const char **)(char *)&instance->data, NULL);
data->glCompileShader(entry->id);
data->glGetShaderiv(entry->id, GL_COMPILE_STATUS, &compileSuccessful);
} else {