Add support for getting the max texture size
This commit is contained in:
parent
85d4bb5ec3
commit
0b91c20bbd
|
@ -9,6 +9,7 @@
|
||||||
#define TRACE_ENABLED 0
|
#define TRACE_ENABLED 0
|
||||||
#define TRACE() if(TRACE_ENABLED) {fprintf(stderr, "%s\n", __func__);}
|
#define TRACE() if(TRACE_ENABLED) {fprintf(stderr, "%s\n", __func__);}
|
||||||
|
|
||||||
|
#define MAX_TEXTURE_SIZE 1024
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned int cmd[8];
|
unsigned int cmd[8];
|
||||||
|
|
|
@ -434,6 +434,9 @@ void APIENTRY glGetIntegerv(GLenum pname, GLint *params) {
|
||||||
case GL_BLEND_DST:
|
case GL_BLEND_DST:
|
||||||
*params = BLEND_DFACTOR;
|
*params = BLEND_DFACTOR;
|
||||||
break;
|
break;
|
||||||
|
case GL_MAX_TEXTURE_SIZE:
|
||||||
|
*params = MAX_TEXTURE_SIZE;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
_glKosThrowError(GL_INVALID_ENUM, "glGetIntegerv");
|
_glKosThrowError(GL_INVALID_ENUM, "glGetIntegerv");
|
||||||
_glKosPrintError();
|
_glKosPrintError();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user