mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-07 01:25:33 +02:00
Enable npot texture wrapping if GL_OES_texture_npot is available
(cherry picked from commit 173adc1bf6)
This commit is contained in:
@@ -2464,7 +2464,9 @@ static bool GLES2_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL
|
||||
|
||||
// Full NPOT textures (that can use GL_REPEAT, etc) are a core feature of GLES3,
|
||||
// and an extension in GLES2.
|
||||
if ((major < 3) && !SDL_GL_ExtensionSupported("GL_ARB_texture_non_power_of_two")) {
|
||||
if (major < 3 &&
|
||||
!SDL_GL_ExtensionSupported("GL_ARB_texture_non_power_of_two") &&
|
||||
!SDL_GL_ExtensionSupported("GL_OES_texture_npot")) {
|
||||
renderer->npot_texture_wrap_unsupported = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user