Extension problems
Submitted by Raphael BOISSEL on June 7, 2008 - 6:24pm.
Hello.
I try to make a litle 3D engine using Tao Framework and there is a problem with the extentions :
Tao.Platform.Windows.Wgl.IsExtensionSupported() and Tao.OpenGl.Gl.IsExtensionSupported() return everytime "False" and I can't load extentions.
can you help me ?
Thanks for all
PS:
I have a 8800GTX
and Vista 64

Make sure that you create an
Make sure that you create an OpenGL context before using any Tao.OpenGL functions. Otherwise, extension won't be loaded and your program may crash or otherwise behave incorrectly (depending on the OS).
Try placing a call to GL.ReloadExtensions() at some point after you create the OpenGL window. If this helps, try to single step through your program, find the first OpenGL call and make sure that happens after you create the window.
------
OpenTK
Thanks! I moved
Thanks!
I moved Me.SimpleOpenGlControl1.InitializeContexts()
from " Private Sub InitializeComponent()" to "Private Sub WievBox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load" and i placed a call to GL.ReloadExtensions() after InitializeContexts()
it and it works!
Thanks you very much!