mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:00:56 +00:00
wined3d: Implement WINED3DTSS_TCI_SPHEREMAP.
This commit is contained in:
parent
3234a4af2d
commit
771fe7fd8a
|
@ -3219,6 +3219,18 @@ static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine
|
|||
|
||||
break;
|
||||
|
||||
case WINED3DTSS_TCI_SPHEREMAP:
|
||||
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
|
||||
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
|
||||
checkGLcall("WINED3DTSS_TCI_SPHEREMAP - Set texgen mode.");
|
||||
|
||||
glEnable(GL_TEXTURE_GEN_S);
|
||||
glEnable(GL_TEXTURE_GEN_T);
|
||||
glDisable(GL_TEXTURE_GEN_R);
|
||||
checkGLcall("WINED3DTSS_TCI_SPHEREMAP - Enable texgen.");
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
FIXME("Unhandled WINED3DTSS_TEXCOORDINDEX %#x\n",
|
||||
stateblock->textureState[stage][WINED3DTSS_TEXCOORDINDEX]);
|
||||
|
|
Loading…
Reference in a new issue