wined3d: Enable clip planes with GLSL shader backend

Stefan Dösinger stefandoesinger at gmx.at
Wed Oct 31 14:21:08 CDT 2007


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071031/8a035fa2/attachment.pgp 


More information about the wine-patches mailing list