Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are GLEW_VERSION_N_M values correct? #46

Closed
devel-chm opened this issue Feb 21, 2017 · 0 comments
Closed

Are GLEW_VERSION_N_M values correct? #46

devel-chm opened this issue Feb 21, 2017 · 0 comments

Comments

@devel-chm
Copy link
Collaborator

The current OpenGL::Modern bindings have implemented accessor XS routines to retrieve the values of the various GLEW state variables GLEW_\w+ (such as GLEW_VERSION_M_N where M,N might be 4,3). For my cygwin/win7 platform, I get the same results from our accessors as the glewinfo program that comes with the GLEW software distribution.

Reports by @wchristian to implement a test for these values seem to show results that are inconsistent with the advertised version of OpenGL of the test platform. However, the tests do not actually try the indicated functionality to determine if the GLEW_\w+ state values are actually correct. For example, from the GLEW usage documentation:

if (GLEW_ARB_vertex_program)
{
  /* It is safe to use the ARB_vertex_program extension here. */
  glGenProgramsARB(...);
}

and

if (GLEW_VERSION_1_3)
{
  /* Yay! OpenGL 1.3 is supported! */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants