From: Eleni Maria Stea Date: Tue, 26 Feb 2013 13:04:26 +0000 (+0200) Subject: added max vertex attributes, renderbuffer size X-Git-Url: https://eleni.mutantstargoat.com/git/?p=libgliar;a=commitdiff_plain;h=1558b89a1f3db8b97233624e77ef18903de1b652 added max vertex attributes, renderbuffer size --- diff --git a/examples/asuseee.conf b/examples/asuseee.conf index 8dce28b..b458b12 100644 --- a/examples/asuseee.conf +++ b/examples/asuseee.conf @@ -225,3 +225,6 @@ GL_ARB_invalidate_subdata [max texture units] 8 + +[max texture coordinates] +8 diff --git a/examples/lenovo.conf b/examples/lenovo.conf index 0940b81..0bf19fa 100644 --- a/examples/lenovo.conf +++ b/examples/lenovo.conf @@ -194,3 +194,9 @@ GL_ARB_invalidate_subdata [max texture coordinates] 8 + +[max vertex attributes] +16 + +[max renderbuffer size] +8192 diff --git a/src/gliar.c b/src/gliar.c index 8131a62..71f99e5 100644 --- a/src/gliar.c +++ b/src/gliar.c @@ -253,6 +253,14 @@ void glGetIntegerv(GLenum name, GLint *val) key = "max texture coordinates"; break; + case GL_MAX_VERTEX_ATTRIBS: + key = "max vertex attributes"; + break; + + case GL_MAX_RENDERBUFFER_SIZE_EXT: + key = "max renderbuffer size"; + break; + default: key = 0; } diff --git a/tests/glinfo/glinfo.c b/tests/glinfo/glinfo.c index b46675b..dfde489 100644 --- a/tests/glinfo/glinfo.c +++ b/tests/glinfo/glinfo.c @@ -40,5 +40,7 @@ int main(int argc, char **argv) printf("texture units: %d\n", GET_INTEGER(GL_MAX_TEXTURE_UNITS)); printf("max texture size: %d\n", GET_INTEGER(GL_MAX_TEXTURE_SIZE)); printf("max texture coordinates: %d\n", GET_INTEGER(GL_MAX_TEXTURE_COORDS)); + printf("max vertex attributes: %d\n", GET_INTEGER(GL_MAX_VERTEX_ATTRIBS)); + printf("max renderbuffer size: %d\n", GET_INTEGER(GL_MAX_RENDERBUFFER_SIZE_EXT)); return 0; }