mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 05:00:41 +00:00
Fix compilation with USE_GLES2 = 1
This commit is contained in:
parent
5cc1a8934e
commit
14ebe23f0d
2 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,6 @@ static PROC(WINAPI* getprocaddress)(LPCSTR name);
|
|||
|
||||
static void* LoadGLES2Proc(const char* name)
|
||||
{
|
||||
|
||||
HINSTANCE hGetProcIDDLL = LoadLibraryA("libGLESv2.dll");
|
||||
|
||||
int error = GetLastError();
|
||||
|
@ -71,6 +70,7 @@ static void* LoadGLES2Proc(const char* name)
|
|||
if (!addr)
|
||||
{
|
||||
//exit(1);
|
||||
return nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -182,7 +182,7 @@ namespace OpenGLESRenderer
|
|||
#if USE_GLES2
|
||||
gles.depthStencilAvailable = CheckExtension("GL_OES_packed_depth_stencil");
|
||||
gles.npotAvailable = CheckExtension("GL_OES_texture_npot");
|
||||
gles.depthClampAvailable = CheckExtension("GL_EXT_depth_clamp")
|
||||
gles.depthClampAvailable = CheckExtension("GL_EXT_depth_clamp");
|
||||
#else
|
||||
gles.depthStencilAvailable = true;
|
||||
gles.npotAvailable = true;
|
||||
|
|
|
@ -42,6 +42,7 @@ GLAPI PFNGLUNMAPBUFFEROESPROC glUnmapBuffer;
|
|||
#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
|
||||
#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
|
||||
#define GL_BGRA 0x80E1
|
||||
#define GL_DEPTH_CLAMP 0x864F
|
||||
|
||||
#else
|
||||
#include "gl_load/gl_load.h"
|
||||
|
|
Loading…
Reference in a new issue