http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a46348
)
Restore the texture env mode on SetTexture - Fixes problem in
author
Jason Edmeades
<us@the-edmeades.demon.co.uk>
Tue, 21 Jan 2003 00:30:27 +0000
(
00:30
+0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Tue, 21 Jan 2003 00:30:27 +0000
(
00:30
+0000)
codesampler demo.
dlls/d3d8/device.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/d3d8/device.c
b/dlls/d3d8/device.c
index 8036eeaca2adf50d9c2f49371c5cefa617f9f6cf..c140d82bef882574db91e45823c42d7ff475d552 100644
(file)
--- a/
dlls/d3d8/device.c
+++ b/
dlls/d3d8/device.c
@@
-3511,7
+3511,12
@@
HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState(LPDIRECT3DDEVICE8 ifa
glDisable(GL_TEXTURE_3D);
checkGLcall("Disable GL_TEXTURE_3D");
}
- }
+ }
+
+ /* Re-Enable GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT */
+ if (Value != D3DTOP_DISABLE) {
+ glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
+ }
/* Now set up the operand correctly */
switch (Value) {