Re: wined3d: Enable clip planes with GLSL shader backend
31 Oct
2007
31 Oct
'07
7:21 p.m.
Am Mittwoch, 31. Oktober 2007 18:50:32 schrieb Fabian Bieler:
- glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadMatrixf((float *) &stateblock->transforms[WINED3DTS_VIEW].u.m[0][0]); + if(!use_vs(stateblock->wineD3DDevice)) { + /* Clip Plane settings are affected by the model view in OpenGL, the View transform in direct3d */ + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadMatrixf((float *) &stateblock->transforms[WINED3DTS_VIEW].u.m[0][0]); + } Isn't this going to cause problems with the glPopMatrix afterwards?
6707
Age (days ago)
6707
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan Dösinger