comparison src/video/SDL_renderer_gl.c @ 3253:5d7ef5970073

Fixed issues building 64-bit Windows binary
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 23:37:35 +0000
parents 20d65430e63c
children e3d33bd599eb
comparison
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