Ticket #7 (closed defect: fixed)

Opened 1 year ago

Last modified 5 months ago

Revision 262 - GLXContext breakes on Mac OS X

Reported by: rti Assigned to:
Priority: major Version:
Keywords: mac os x glxcontext context opengl derelictglcontext Cc:

Description

a version(darwin) part is missing to do the GLXContext stuff on Mac OS X.
sadly I have no idea how to fix it -.-

Change History

09/09/07 06:46:43 changed by Oskar

Since getCurrentContext() isn't supported on OS X anyway (throws an exception), GLXContext doesn't have any use. Just make it an alias for void. The patch below does just that and is confirmed to work.

Index: ../derelict/DerelictGL/derelict/opengl/gl.d =================================================================== --- ../derelict/DerelictGL/derelict/opengl/gl.d (revision 270) +++ ../derelict/DerelictGL/derelict/opengl/gl.d (working copy) @@ -62,6 +62,7 @@

else version(darwin) {

void loadPlatformGL(SharedLib? lib) {}

+ alias void DerelictGLContext;

}

version(UsingGLX)

04/04/08 13:42:41 changed by hugues

  • status changed from new to closed.
  • resolution set to fixed.

Revision 288 fixes this issue. For version darwin, DerelictGLContext is defined as CGLContextObj (Core OpenGL context) and support has been added to related functions.