src/video/SDL_renderer_gl.c
changeset 3253 5d7ef5970073
parent 3041 20d65430e63c
child 3262 e3d33bd599eb
equal deleted inserted replaced
3252:d2465e21f103 3253:5d7ef5970073
   513 
   513 
   514     data->glGetError();         /* flush any existing error state. */
   514     data->glGetError();         /* flush any existing error state. */
   515     data->glGenProgramsARB(1, &program);
   515     data->glGenProgramsARB(1, &program);
   516     data->glBindProgramARB(shader_type, program);
   516     data->glBindProgramARB(shader_type, program);
   517     data->glProgramStringARB(shader_type, GL_PROGRAM_FORMAT_ASCII_ARB,
   517     data->glProgramStringARB(shader_type, GL_PROGRAM_FORMAT_ASCII_ARB,
   518                              SDL_strlen(code), code);
   518                              (GLsizei)SDL_strlen(code), code);
   519 
   519 
   520     SDL_free(code);
   520     SDL_free(code);
   521 
   521 
   522     if (data->glGetError() == GL_INVALID_OPERATION) {
   522     if (data->glGetError() == GL_INVALID_OPERATION) {
   523 #if DEBUG_PROGRAM_COMPILE
   523 #if DEBUG_PROGRAM_COMPILE