src/osx/rays.mm in rays-0.1.12 vs src/osx/rays.mm in rays-0.1.13
- old
+ new
@@ -2,10 +2,11 @@
#include "rays/rays.h"
#import <Foundation/Foundation.h>
#include "rays/exception.h"
+#include "../opengl.h"
namespace Rays
{
@@ -25,9 +26,11 @@
{
if (global::pool)
rays_error(__FILE__, __LINE__, "Rays::init(): already initialized.");
global::pool = [[NSAutoreleasePool alloc] init];
+
+ OpenGL_set_context(get_offscreen_context());
}
void
fin ()
{