mirror of https://github.com/encounter/SDL.git
Remove strict aliasing warning in opengles2 backend
This commit is contained in:
parent
3e43d6e34b
commit
d7f66ba1ec
|
@ -480,7 +480,7 @@ GLES2_CacheShader(GLES2_RenderData *data, GLES2_ShaderType type, GLenum shader_t
|
|||
{
|
||||
GLuint id;
|
||||
GLint compileSuccessful = GL_FALSE;
|
||||
const Uint8 *shader_src = GLES2_GetShader(type);
|
||||
const char *shader_src = (char *)GLES2_GetShader(type);
|
||||
|
||||
if (!shader_src) {
|
||||
SDL_SetError("No shader src");
|
||||
|
@ -489,7 +489,7 @@ GLES2_CacheShader(GLES2_RenderData *data, GLES2_ShaderType type, GLenum shader_t
|
|||
|
||||
/* Compile */
|
||||
id = data->glCreateShader(shader_type);
|
||||
data->glShaderSource(id, 1, (const char**)&shader_src, NULL);
|
||||
data->glShaderSource(id, 1, &shader_src, NULL);
|
||||
data->glCompileShader(id);
|
||||
data->glGetShaderiv(id, GL_COMPILE_STATUS, &compileSuccessful);
|
||||
|
||||
|
|
Loading…
Reference in New Issue