Hi,
below is a simple test, in general i want to switch between a pixelbuffer and the main screen.
Everything is initializing fine. The switch to hPBufferDC/RC is always working but when i try to
switch back to hMainDC/RC, both wglMakeCurrent() and wglMakeContextCurrentARB(), fail but
do not return ‘FALSE’.
GetLastError() returns error 126 ERROR_MOD_NOT_FOUND.
Worst thing is that i had it already working and i dont know if i messed things up in a late
night session or if it has to do with my switch from NV to ATI (x800 XL).
hMainDC = wglGetCurrentDC();
hMainRC = wglGetCurrentContext();
checkError();
wglMakeContextCurrentARB(hPBufferDC, hPBufferDC, hPBufferRC);
checkError();
wglMakeContextCurrentARB(hMainDC, hMainDC, hMainRC);
checkError();
wglMakeContextCurrentARB(hPBufferDC, hPBufferDC, hPBufferRC);
checkError();
wglMakeContextCurrentARB(hMainDC, hMainDC, hMainRC);
checkError();
Thanks for reading! Any Idea?
(Yes, i know about FBO’s. They are nice and easy to use.
But i need help on this special one )