src/render/opengl/SDL_render_gl.c
changeset 6449 fa00544b1374
parent 6414 df50b0d6c1c3
child 6494 309599be5c2a
equal deleted inserted replaced
6448:64a6297a8b93 6449:fa00544b1374
   359     }
   359     }
   360     if (SDL_GL_GetSwapInterval() > 0) {
   360     if (SDL_GL_GetSwapInterval() > 0) {
   361         renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
   361         renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
   362     }
   362     }
   363 
   363 
   364     data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
       
   365     renderer->info.max_texture_width = value;
       
   366     data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
       
   367     renderer->info.max_texture_height = value;
       
   368 
       
   369     if (SDL_GL_ExtensionSupported("GL_ARB_texture_rectangle")
   364     if (SDL_GL_ExtensionSupported("GL_ARB_texture_rectangle")
   370         || SDL_GL_ExtensionSupported("GL_EXT_texture_rectangle")) {
   365         || SDL_GL_ExtensionSupported("GL_EXT_texture_rectangle")) {
   371         data->GL_ARB_texture_rectangle_supported = SDL_TRUE;
   366         data->GL_ARB_texture_rectangle_supported = SDL_TRUE;
       
   367         data->glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, &value);
       
   368         renderer->info.max_texture_width = value;
       
   369         renderer->info.max_texture_height = value;
       
   370     } else {
       
   371         data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
       
   372         renderer->info.max_texture_width = value;
       
   373         renderer->info.max_texture_height = value;
   372     }
   374     }
   373 
   375 
   374     /* Check for multitexture support */
   376     /* Check for multitexture support */
   375     if (SDL_GL_ExtensionSupported("GL_ARB_multitexture")) {
   377     if (SDL_GL_ExtensionSupported("GL_ARB_multitexture")) {
   376         data->glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) SDL_GL_GetProcAddress("glActiveTextureARB");
   378         data->glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) SDL_GL_GetProcAddress("glActiveTextureARB");