Changeset 288
- Timestamp:
- 04/04/08 13:35:14 (3 months ago)
- Files:
-
- trunk/DerelictGL/derelict/opengl/cgl.d (added)
- trunk/DerelictGL/derelict/opengl/gl.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictGL/derelict/opengl/gl.d
r287 r288 1 1 /* 2 * Copyright (c) 2004-200 7Derelict Developers2 * Copyright (c) 2004-2008 Derelict Developers 3 3 * All rights reserved. 4 4 * … … 62 62 else version(darwin) 63 63 { 64 void loadPlatformGL(SharedLib lib) {} 64 import derelict.opengl.cgl; 65 alias CGLContextObj DerelictGLContext; 65 66 } 66 67 … … 203 204 return false; 204 205 } 206 else version(darwin) 207 { 208 if(CGLGetCurrentContext() is null) 209 return false; 210 } 205 211 else throw new DerelictException("DerelictGL.hasValidContext is unimplemented for this platform"); 206 212 … … 212 218 version(Windows) return wglGetCurrentContext(); 213 219 else version(UsingGLX) return glXGetCurrentContext(); 220 else version(darwin) return CGLGetCurrentContext(); 214 221 else throw new DerelictException("DerelictGL.getCurrentContext is Unimplemented for this platform"); 215 222 }
