src/render/opengles2/SDL_render_gles2.c
changeset 10646 cc3e4b8f1a8d
parent 10609 d702ecbd8ba7
child 10737 3406a0f8b041
equal deleted inserted replaced
10645:b3475b7afcbc 10646:cc3e4b8f1a8d
  1066     entry->instance = instance;
  1066     entry->instance = instance;
  1067 
  1067 
  1068     /* Compile or load the selected shader instance */
  1068     /* Compile or load the selected shader instance */
  1069     entry->id = data->glCreateShader(instance->type);
  1069     entry->id = data->glCreateShader(instance->type);
  1070     if (instance->format == (GLenum)-1) {
  1070     if (instance->format == (GLenum)-1) {
  1071         data->glShaderSource(entry->id, 1, (const char **)&instance->data, NULL);
  1071         data->glShaderSource(entry->id, 1, (const char **)(char *)&instance->data, NULL);
  1072         data->glCompileShader(entry->id);
  1072         data->glCompileShader(entry->id);
  1073         data->glGetShaderiv(entry->id, GL_COMPILE_STATUS, &compileSuccessful);
  1073         data->glGetShaderiv(entry->id, GL_COMPILE_STATUS, &compileSuccessful);
  1074     } else {
  1074     } else {
  1075         data->glShaderBinary(1, &entry->id, instance->format, instance->data, instance->length);
  1075         data->glShaderBinary(1, &entry->id, instance->format, instance->data, instance->length);
  1076         compileSuccessful = GL_TRUE;
  1076         compileSuccessful = GL_TRUE;