Checking for OpenGL Extensions using Glew

BlitzMax Forums/BlitzMax Programming/Checking for OpenGL Extensions using Glew

Like this:
Import pub.glew

SetGraphicsDriver GLMax2DDriver()
Graphics 640,480,0,0

glewInit()

If (GL_ARB_vertex_program)
	Print "Yepa!"
EndIf
If (GL_VERSION_1_1)
	Print "GLEW_VERSION_1_1"
EndIf
If (GL_VERSION_1_2)
	Print "GLEW_VERSION_1_2"
EndIf
If (GL_VERSION_1_3)
	Print "GLEW_VERSION_1_3"
EndIf
If (GL_VERSION_1_4)
	Print "GLEW_VERSION_1_4"
EndIf
If (GL_VERSION_1_5)
	Print "GLEW_VERSION_1_5"
EndIf
If (GL_VERSION_2_0)
	Print "GLEW_VERSION_2_0"
EndIf
Just replace the GLEW with GL

Added GLEW_VERSION_X_X check...