Keep the checkGLcall glActiveTexture/glActiveTextureARB separation in

all the file.
This commit is contained in:
Ofir Petruska 2004-03-23 23:13:56 +00:00 committed by Alexandre Julliard
parent f92bb4b76a
commit fe334f7e20
1 changed files with 6 additions and 2 deletions

View File

@ -122,10 +122,11 @@ void setupTextureStates(LPDIRECT3DDEVICE8 iface, DWORD Stage, DWORD Flags) {
if (GL_SUPPORT(ARB_MULTITEXTURE)) { if (GL_SUPPORT(ARB_MULTITEXTURE)) {
#if defined(GL_VERSION_1_3) #if defined(GL_VERSION_1_3)
glActiveTexture(GL_TEXTURE0 + Stage); glActiveTexture(GL_TEXTURE0 + Stage);
checkGLcall("glActiveTexture");
#else #else
glActiveTextureARB(GL_TEXTURE0_ARB + Stage); glActiveTextureARB(GL_TEXTURE0_ARB + Stage);
#endif
checkGLcall("glActiveTextureARB"); checkGLcall("glActiveTextureARB");
#endif
} else if (Stage > 0) { } else if (Stage > 0) {
FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n");
} }
@ -1514,8 +1515,10 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTransform(LPDIRECT3DDEVICE8 iface, D3DT
int tex = d3dts - D3DTS_TEXTURE0; int tex = d3dts - D3DTS_TEXTURE0;
#if defined(GL_VERSION_1_3) #if defined(GL_VERSION_1_3)
glActiveTexture(GL_TEXTURE0 + tex); glActiveTexture(GL_TEXTURE0 + tex);
checkGLcall("glActiveTexture");
#else #else
glActiveTextureARB(GL_TEXTURE0_ARB + tex); glActiveTextureARB(GL_TEXTURE0_ARB + tex);
checkGLcall("glActiveTextureARB");
#endif #endif
set_texture_matrix((float *)lpmatrix, This->UpdateStateBlock->texture_state[tex][D3DTSS_TEXTURETRANSFORMFLAGS]); set_texture_matrix((float *)lpmatrix, This->UpdateStateBlock->texture_state[tex][D3DTSS_TEXTURETRANSFORMFLAGS]);
} }
@ -3071,10 +3074,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD
if (GL_SUPPORT(ARB_MULTITEXTURE)) { if (GL_SUPPORT(ARB_MULTITEXTURE)) {
#if defined(GL_VERSION_1_3) #if defined(GL_VERSION_1_3)
glActiveTexture(GL_TEXTURE0 + Stage); glActiveTexture(GL_TEXTURE0 + Stage);
checkGLcall("glActiveTexture");
#else #else
glActiveTextureARB(GL_TEXTURE0_ARB + Stage); glActiveTextureARB(GL_TEXTURE0_ARB + Stage);
#endif
checkGLcall("glActiveTextureARB"); checkGLcall("glActiveTextureARB");
#endif
} else if (Stage>0) { } else if (Stage>0) {
FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n"); FIXME("Program using multiple concurrent textures which this opengl implementation doesn't support\n");
} }