andreasMank
04-16-2004, 05:43 AM
i have some problems using pbuffer .. no problem to create it .. but i get wrong results while switching between pbuffer and frame buffer .. for testing i'm calling
wglMakeCurrent(wglGetCurrentDC(), wglGetCurrentContext());
before every rendering .. and i though it would just render my screen to the current window .. but it looks wrong .. the other mysterious thing happens after calling twice wglMakeCurrent() .. normaly i tought i should get the same result as calling only ones ..
wglGetCurrentContext(..));
render();
is different from
wglGetCurrentContext(..));
wglGetCurrentContext(..));
render();
.. perhaps i misunderstood something basicly .. would be great if somebody could help me ..
wglMakeCurrent(wglGetCurrentDC(), wglGetCurrentContext());
before every rendering .. and i though it would just render my screen to the current window .. but it looks wrong .. the other mysterious thing happens after calling twice wglMakeCurrent() .. normaly i tought i should get the same result as calling only ones ..
wglGetCurrentContext(..));
render();
is different from
wglGetCurrentContext(..));
wglGetCurrentContext(..));
render();
.. perhaps i misunderstood something basicly .. would be great if somebody could help me ..