From 34dd52ca904cac0896273f820789f217ced59076 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 17 Feb 2023 23:46:38 +0100 Subject: [PATCH] ref: gl: trust the GL_EXTENSIONS string on psvita --- ref/gl/gl_opengl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ref/gl/gl_opengl.c b/ref/gl/gl_opengl.c index f0a33d9c..3d7ee567 100644 --- a/ref/gl/gl_opengl.c +++ b/ref/gl/gl_opengl.c @@ -370,7 +370,12 @@ qboolean GL_CheckExtension( const char *name, const dllfunc_t *funcs, const char { // functions are cleared before all the extensions are evaluated if((*func->func = (void *)gEngfuncs.GL_GetProcAddress( func->name )) == NULL ) - GL_SetExtension( r_ext, false ); // one or more functions are invalid, extension will be disabled + { +#if !XASH_PSVITA // on the vita some exts are implemented partially but that's still enough + // one or more functions are invalid, extension will be disabled + GL_SetExtension( r_ext, false ); +#endif + } } #endif