Skybuck Flying
2010-07-24 07:28:33 UTC
Hello,
Situation is as follows:
1. First thread gets/sets pixel format for DC (I didn't write that code and
hardly understand it) and creates opengl context with wglCreateContext.
2. First thread creates second thread.
3. Second thread when running tries to create another rendering context with
the same device context from the first thread... but this fails ?!?
The handle returned is zero ?!? Is this normal ? Or does the driver not
support it, or does opengl not support it or am I doing something wrong...
hmm...
Does the second thread have to do anything with pixel formats or the dc ?
Bye,
Skybuck.
Situation is as follows:
1. First thread gets/sets pixel format for DC (I didn't write that code and
hardly understand it) and creates opengl context with wglCreateContext.
2. First thread creates second thread.
3. Second thread when running tries to create another rendering context with
the same device context from the first thread... but this fails ?!?
The handle returned is zero ?!? Is this normal ? Or does the driver not
support it, or does opengl not support it or am I doing something wrong...
hmm...
Does the second thread have to do anything with pixel formats or the dc ?
Bye,
Skybuck.