This project is read-only.

Querying for max texture units returns 0

Sep 30, 2014 at 10:36 PM
Hello, when I call OpenGL.GetInteger, passing 0x84E2 or 34018, I get 0.

I am running this on Windows 7 Pro on a Dell Latitude E5520.

Is there something I should be doing on my system to support textures?

I am not running the most recent NuGet version and install have the project source linked to my code. Is there a way I can confirm what version I am running?
Nov 19, 2014 at 9:30 PM
These calls worked for me:
            int[] max1 = new int[1];
            gl.GetInteger(OpenGL.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB, max1);

            int[] max2 = new int[1];
            gl.GetInteger(OpenGL.GL_MAX_TEXTURE_BUFFER_SIZE, max2);

            int[] max3 = new int[1];
            gl.GetInteger(OpenGL.GL_MAX_TEXTURE_UNITS_ARB, max3);
max1[0] = 192
max2[0] = 134,217,728
max3[0] = 4

"Is there something I should be doing on my system to support textures? " I don't think so.
I think SharpGL just passes on the methods to openGL and textures are an important part of openGL, so they would be included in all versions.

From https://github.com/dwmkerr/sharpgl "SharpGL wraps all modern OpenGL features."

From https://github.com/dwmkerr/sharpgl/wiki
"OpenGL constants are named in exactly the same way as they are in OpenGL and are constant members of the OpenGL class"
"OpenGL functions are named in exactly the same way as they are in OpenGL - except that the 'gl' prefix is removed"

From https://github.com/dwmkerr/sharpgl/wiki/OpenGL-Compatibility
"SharpGL supports almost all extensions and the core functionality of OpenGL to version 4.2."