comparison src/render/opengl/SDL_render_gl.c @ 5234:c015d3e63631

Fixed setting the texture unit, still doesn't work.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 08 Feb 2011 16:50:51 -0800
parents 811beeb698f9
children 8efa43b915be
comparison
equal deleted inserted replaced
5233:811beeb698f9 5234:c015d3e63631
280 data->glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &data->num_texture_units); 280 data->glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &data->num_texture_units);
281 } 281 }
282 } 282 }
283 283
284 /* Check for shader support */ 284 /* Check for shader support */
285 //data->shaders = GL_CreateShaderContext(); 285 data->shaders = GL_CreateShaderContext();
286 286
287 #if 0 287 #if 0
288 /* We support YV12 textures using 3 textures and a shader */ 288 /* We support YV12 textures using 3 textures and a shader */
289 if (data->shaders && data->num_texture_units >= 3) { 289 if (data->shaders && data->num_texture_units >= 3) {
290 renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12; 290 renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;