mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 21:47:44 +00:00
mistake: Revert the files that I did not mean to commit
This commit is contained in:
@@ -210,7 +210,6 @@ ShouldUseTextureFramebuffer()
|
||||
#if SDL_VIDEO_OPENGL
|
||||
/* Ugh, find a way to cache this value! */
|
||||
{
|
||||
/*
|
||||
SDL_Window *window;
|
||||
SDL_GLContext context;
|
||||
SDL_bool hasAcceleratedOpenGL = SDL_FALSE;
|
||||
@@ -226,6 +225,7 @@ ShouldUseTextureFramebuffer()
|
||||
if (glGetStringFunc) {
|
||||
vendor = (const char *) glGetStringFunc(GL_VENDOR);
|
||||
}
|
||||
/* Add more vendors here at will... */
|
||||
if (vendor &&
|
||||
(SDL_strstr(vendor, "ATI Technologies") ||
|
||||
SDL_strstr(vendor, "NVIDIA"))) {
|
||||
@@ -235,8 +235,7 @@ ShouldUseTextureFramebuffer()
|
||||
}
|
||||
SDL_DestroyWindow(window);
|
||||
}
|
||||
*/
|
||||
return 1;//hasAcceleratedOpenGL;
|
||||
return hasAcceleratedOpenGL;
|
||||
}
|
||||
#elif SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
|
||||
/* Let's be optimistic about this! */
|
||||
|
||||
Reference in New Issue
Block a user