From: Eleni Maria Stea Date: Tue, 26 Feb 2013 12:43:03 +0000 (+0200) Subject: added max texture coordinates X-Git-Url: https://eleni.mutantstargoat.com/git/?p=libgliar;a=commitdiff_plain;h=7b61dc6f2d581f40d53ff430fd80e3240b77ddb8 added max texture coordinates --- diff --git a/examples/lenovo.conf b/examples/lenovo.conf index 30bea34..0940b81 100644 --- a/examples/lenovo.conf +++ b/examples/lenovo.conf @@ -1,4 +1,4 @@ -# example GLIAR configuration that emulates the lenovo T430 GPU +# example GLIAR configuration that emulates the Intel 4000 GPU (lenovo T430) # copyright: Canonical Ltd, 2013 # author: Eleni Maria Stea # @@ -191,3 +191,6 @@ GL_ARB_invalidate_subdata [max texture units] 8 + +[max texture coordinates] +8 diff --git a/src/gliar.c b/src/gliar.c index 5fe944d..8131a62 100644 --- a/src/gliar.c +++ b/src/gliar.c @@ -249,6 +249,10 @@ void glGetIntegerv(GLenum name, GLint *val) key = "max texture size"; break; + case GL_MAX_TEXTURE_COORDS: + key = "max texture coordinates"; + break; + default: key = 0; } diff --git a/tests/glinfo/glinfo.c b/tests/glinfo/glinfo.c index 3f09354..b46675b 100644 --- a/tests/glinfo/glinfo.c +++ b/tests/glinfo/glinfo.c @@ -39,5 +39,6 @@ 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)); return 0; }