From 9cf6e421cb600bfa89a4f6b17755ca69cc4d2a0b Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 19 Feb 2023 01:31:54 +0100 Subject: [PATCH] ref: gl: psvita: force-enable NPOT textures --- ref/gl/gl_opengl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ref/gl/gl_opengl.c b/ref/gl/gl_opengl.c index 3d7ee567..8f88b129 100644 --- a/ref/gl/gl_opengl.c +++ b/ref/gl/gl_opengl.c @@ -751,6 +751,11 @@ void GL_InitExtensionsBigGL( void ) // this won't work without extended context if( glw_state.extended ) GL_CheckExtension( "GL_ARB_debug_output", debugoutputfuncs, "gl_debug_output", GL_DEBUG_OUTPUT ); + +#if XASH_PSVITA + // NPOT textures are actually supported, but the extension is not listed in GL_EXTENSIONS + GL_SetExtension( GL_ARB_TEXTURE_NPOT_EXT, true ); +#endif } #endif