NeverSayImpossible
03-16-2011, 09:37 PM
When i try this, it say possible.
if (GL_ARB_vertex_shader) {
printf("Possible\n");
}
When i try this, it say "Driver does not support OpenGL Shading Language"
// Ensure we have the necessary OpenGL Shading Language extensions.
if (glewGetExtension("GL_ARB_fragment_shader") != GL_TRUE ||
glewGetExtension("GL_ARB_vertex_shader") != GL_TRUE ||
glewGetExtension("GL_ARB_shader_objects") != GL_TRUE ||
glewGetExtension("GL_ARB_shading_language_100") != GL_TRUE)
{
fprintf(stderr, "Driver does not support OpenGL Shading Language\n");
exit(1);
}
What is this talking about actually?Does my hardware support open glsl?
I get this info:
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) 945GM GEM 20091221 2009Q4 x86/MMX/SSE2
GL_VERSION: 1.4 Mesa 7.7.1
GL_SHADING_LANGUAGE_VERSION: 1.20
I found that my pc does not support GL_ARB_fragment_shader only when I take out "glewGetExtension("GL_ARB_fragment_shader")!= GL_TRUE".
Why it support GL_ARB_vertex_shader but not GL_ARB_fragment_shader?Both should be together right?
if (GL_ARB_vertex_shader) {
printf("Possible\n");
}
When i try this, it say "Driver does not support OpenGL Shading Language"
// Ensure we have the necessary OpenGL Shading Language extensions.
if (glewGetExtension("GL_ARB_fragment_shader") != GL_TRUE ||
glewGetExtension("GL_ARB_vertex_shader") != GL_TRUE ||
glewGetExtension("GL_ARB_shader_objects") != GL_TRUE ||
glewGetExtension("GL_ARB_shading_language_100") != GL_TRUE)
{
fprintf(stderr, "Driver does not support OpenGL Shading Language\n");
exit(1);
}
What is this talking about actually?Does my hardware support open glsl?
I get this info:
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) 945GM GEM 20091221 2009Q4 x86/MMX/SSE2
GL_VERSION: 1.4 Mesa 7.7.1
GL_SHADING_LANGUAGE_VERSION: 1.20
I found that my pc does not support GL_ARB_fragment_shader only when I take out "glewGetExtension("GL_ARB_fragment_shader")!= GL_TRUE".
Why it support GL_ARB_vertex_shader but not GL_ARB_fragment_shader?Both should be together right?