Browse Source

ref: remove renderer description export, it's unused now

pull/2/head
Alibek Omarov 2 years ago
parent
commit
8bb5ec5e26
  1. 3
      engine/ref_api.h
  2. 13
      ref/gl/gl_context.c
  3. 5
      ref/soft/r_context.c

3
engine/ref_api.h

@ -621,9 +621,6 @@ typedef struct ref_interface_s @@ -621,9 +621,6 @@ typedef struct ref_interface_s
typedef int (*REFAPI)( int version, ref_interface_t *pFunctionTable, ref_api_t* engfuncs, ref_globals_t *pGlobals );
#define GET_REF_API "GetRefAPI"
typedef void (*REF_HUMANREADABLE_NAME)( char *out, size_t len );
#define GET_REF_HUMANREADABLE_NAME "GetRefHumanReadableName"
#ifdef REF_DLL
#define DEFINE_ENGINE_SHARED_CVAR( x, y ) cvar_t *x = NULL;
#define DECLARE_ENGINE_SHARED_CVAR( x, y ) extern cvar_t *x;

13
ref/gl/gl_context.c

@ -512,16 +512,3 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs, @@ -512,16 +512,3 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs,
return REF_API_VERSION;
}
void EXPORT GetRefHumanReadableName( char *out, size_t size )
{
#if defined XASH_NANOGL
Q_strncpy( out, "GLES1(NanoGL)", size );
#elif defined XASH_WES
Q_strncpy( out, "GLES2(gl-wes-v2)", size );
#elif defined XASH_GL4ES
Q_strncpy( out, "GLES2(gl4es)", size );
#else
Q_strncpy( out, "OpenGL", size );
#endif
}

5
ref/soft/r_context.c

@ -582,8 +582,3 @@ int EXPORT GAME_EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t @@ -582,8 +582,3 @@ int EXPORT GAME_EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t
return REF_API_VERSION;
}
void EXPORT GetRefHumanReadableName( char *out, size_t size )
{
Q_strncpy( out, "Software", size );
}

Loading…
Cancel
Save