mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 21:52:05 +08:00
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:
+2
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user