mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
d3d8: Fixed POINTSPRITEENABLE.
This commit is contained in:
parent
80c82f527f
commit
ecacc1ebcb
@ -3095,12 +3095,18 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* Point sprites are always enabled. Value controls texture coordinate
|
||||
* replacement mode. Must be set true for point sprites to use
|
||||
* textures.
|
||||
*/
|
||||
glEnable(GL_POINT_SPRITE_ARB);
|
||||
checkGLcall("glEnable GL_POINT_SPRITE_ARB");
|
||||
|
||||
if (Value) {
|
||||
glEnable(GL_POINT_SPRITE_ARB);
|
||||
checkGLcall("glEnable GL_POINT_SPRITE_ARB");
|
||||
glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, TRUE);
|
||||
} else {
|
||||
glDisable(GL_POINT_SPRITE_ARB);
|
||||
checkGLcall("glDisable GL_POINT_SPRITE_ARB");
|
||||
glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, FALSE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user