Advertisement

06.01.2008 at 01:16AM PDT, ID: 23447810
[x]
Attachment Details

Enabling OpenGL as multithreaded fails.

Asked by VanceRegent in OpenGL Graphics & Game Programming, Cocoa Programming Language

Tags: objective-c, safari

I tried to enable multithreading in a custom OpenGLView and failed (see code)
Processor is Quad-Core Intel Xeon.
kCGLCEMPEngine = 313 checked
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
- (void) prepareOpenGL
{
     CGLError err = 0;
     err = CGLEnable([[self openGLContext] 
         CGLContextObj],kCGLCEMPEngine);                    
     if(err != kCGLNoError)
     {
        // preparation code
     }
}
[+][-]06.01.2008 at 12:15PM PDT, ID: 21688115

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: OpenGL Graphics & Game Programming, Cocoa Programming Language
Tags: objective-c, safari
Sign Up Now!
Solution Provided By: VanceRegent
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628