src/render/opengl/SDL_render_gl.c
changeset 5229 c015d3e63631
parent 5228 811beeb698f9
child 5230 8efa43b915be
equal deleted inserted replaced
5228:811beeb698f9 5229: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;