common: render_api: add CONTEXT_TYPE_SOFTWARE just to distinguish ref_soft and ref_null from ref_gl. Both returned 0 which in case of PARM_GL_CONTEXT_TYPE means compatibility GL profile

This commit is contained in:
Alibek Omarov
2026-08-08 00:39:42 +05:00
parent 28ed4e7930
commit 9f8cb4c172
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -116,7 +116,8 @@ typedef enum
CONTEXT_TYPE_GL = 0, // compatibility profile
CONTEXT_TYPE_GLES_1_X,
CONTEXT_TYPE_GLES_2_X,
CONTEXT_TYPE_GL_CORE
CONTEXT_TYPE_GL_CORE,
CONTEXT_TYPE_SOFTWARE, // not a context by itself, just software renderer
} gl_context_type_t;
typedef enum
+3
View File
@@ -226,6 +226,9 @@ static void CL_DrawBeams( int fTrans, BEAM *beams )
static intptr_t RefGetParm( int parm, int arg )
{
if( parm == PARM_GL_CONTEXT_TYPE )
return CONTEXT_TYPE_SOFTWARE;
return 0;
}
+1 -1
View File
@@ -177,7 +177,7 @@ static intptr_t GL_RefGetParm( int parm, int arg )
case PARM_REBUILD_GAMMA:
return 0;
case PARM_GL_CONTEXT_TYPE:
return 0; // glConfig.context;
return CONTEXT_TYPE_SOFTWARE;
case PARM_GLES_WRAPPER:
return 0; // glConfig.wrapper;
case PARM_STENCIL_ACTIVE: