On 7/4/2014 6:39 PM, Sean Campbell wrote:
On Friday, 4 July 2014 at 08:02:59 UTC, Misu wrote:
Can you try to add DerelictGL3.reload(); after SDL_GL_CreateContext ?
yes this solved the problem. however why? is it a problem with the SDL
binding?
OpenGL on Windows requires a context be created before attempting to
load any extensions or any later versions of OpenGL beyond 1.1. Although
this is not an issue on other platforms, the Derelict binding makes it a
requirement for consistency. DerelictGL3.load loads the DLL into memory
along with the 1.0 & 1.1 function addresses. You can call that at any
time, before or after creating a context. If you do not call
DerelictGL3.reload, you will never load the extensions and 1.2+
functions. If you attempt to call it before creating a context, Derelict
will throw an exception.
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com