Fixed texturing.

This commit is contained in:
Lionel Ulmer 2003-01-02 20:00:25 +00:00 committed by Alexandre Julliard
parent b07df8a198
commit 825ad05656
1 changed files with 4 additions and 1 deletions

View File

@ -1422,6 +1422,7 @@ GL_IDirect3DDeviceImpl_7_3T_SetTexture(LPDIRECT3DDEVICE7 iface,
LPDIRECTDRAWSURFACE7 lpTexture2) LPDIRECTDRAWSURFACE7 lpTexture2)
{ {
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface); ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface);
IDirect3DDeviceGLImpl *glThis = (IDirect3DDeviceGLImpl *) This;
TRACE("(%p/%p)->(%08lx,%p)\n", This, iface, dwStage, lpTexture2); TRACE("(%p/%p)->(%08lx,%p)\n", This, iface, dwStage, lpTexture2);
@ -1446,6 +1447,8 @@ GL_IDirect3DDeviceImpl_7_3T_SetTexture(LPDIRECT3DDEVICE7 iface,
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, tex_glimpl->tex_name); glBindTexture(GL_TEXTURE_2D, tex_glimpl->tex_name);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, glThis->render_state.mag);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, glThis->render_state.min);
} }
LEAVE_GL(); LEAVE_GL();