mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Patch from Degasus that removes the last of the the GL_TEXTURE_RECTANGLE usages. This is needed to have GLES3 support.
This commit is contained in:
@ -23,12 +23,22 @@
|
||||
#define TEXFUNC "texture2D"
|
||||
#ifdef USE_GLES3
|
||||
#include "GLFunctions.h"
|
||||
#define GLAPIENTRY GL_APIENTRY
|
||||
#define GL_SAMPLES_PASSED GL_ANY_SAMPLES_PASSED
|
||||
#define GL_READ_ONLY 0x88B8
|
||||
#define GL_WRITE_ONLY 0x88B9
|
||||
#define GL_READ_WRITE 0x88BA
|
||||
#define GL_SRC1_ALPHA 0
|
||||
#define GL_BGRA GL_RGBA
|
||||
#define glDrawElementsBaseVertex
|
||||
#define GLRENDERBUFFERFORMAT 0x8058 /* RGBA8_OES */
|
||||
#endif
|
||||
#else
|
||||
#define TEX2D GL_TEXTURE_RECTANGLE_ARB
|
||||
#define PREC
|
||||
#define TEXTYPE "sampler2DRect"
|
||||
#define TEXFUNC "texture2DRect"
|
||||
#define GLRENDERBUFFERFORMAT GL_RGBA
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user