Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3f61d286
Commit
3f61d286
authored
Jun 04, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- small TRACEing fix
- fix bug in texture upload (I wonder how I missed this :-/ ) - improve the D3D1/2 texture mapping modes
parent
ed883048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+1
-1
mesa.c
dlls/ddraw/mesa.c
+16
-4
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
3f61d286
...
...
@@ -1833,7 +1833,7 @@ GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState(LPDIRECT3DDEVICE7 iface,
}
break
;
case
D3DTSS_MAXMIPLEVEL
:
TRACE
(
" Stage type : D3DTSS_MAXMIPLEVEL =>
0 (disabled)
\n
"
);
TRACE
(
" Stage type : D3DTSS_MAXMIPLEVEL =>
%ld
\n
"
,
dwState
);
break
;
case
D3DTSS_BORDERCOLOR
:
...
...
dlls/ddraw/mesa.c
View file @
3f61d286
...
...
@@ -244,19 +244,31 @@ void set_render_state(IDirect3DDeviceImpl* This,
convert_D3D_blendop_to_GL
(
lpStateBlock
->
render_state
[
D3DRENDERSTATE_DESTBLEND
-
1
]));
break
;
case
D3DRENDERSTATE_TEXTUREMAPBLEND
:
/* 21 */
case
D3DRENDERSTATE_TEXTUREMAPBLEND
:
{
/* 21 */
IDirect3DDevice7
*
d3ddev
=
ICOM_INTERFACE
(
This
,
IDirect3DDevice7
);
switch
((
D3DTEXTUREBLEND
)
dwRenderState
)
{
case
D3DTBLEND_DECAL
:
glTexEnvi
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_MODE
,
GL_REPLACE
);
break
;
case
D3DTBLEND_DECALALPHA
:
glTexEnvi
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_MODE
,
GL_DECAL
);
break
;
case
D3DTBLEND_MODULATE
:
glTexEnvi
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_MODE
,
GL_MODULATE
);
break
;
case
D3DTBLEND_MODULATEALPHA
:
glTexEnvi
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_MODE
,
GL_MODULATE
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_COLORARG1
,
D3DTA_TEXTURE
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_ALPHAARG1
,
D3DTA_TEXTURE
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_COLORARG2
,
D3DTA_CURRENT
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_ALPHAARG2
,
D3DTA_CURRENT
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_COLOROP
,
D3DTOP_MODULATE
);
IDirect3DDevice7_SetTextureStageState
(
d3ddev
,
0
,
D3DTSS_ALPHAOP
,
D3DTOP_MODULATE
);
break
;
default:
ERR
(
"Unhandled texture environment %ld !
\n
"
,
dwRenderState
);
}
break
;
}
break
;
case
D3DRENDERSTATE_CULLMODE
:
/* 22 */
switch
((
D3DCULL
)
dwRenderState
)
{
...
...
@@ -968,7 +980,7 @@ HRESULT upload_surface_to_tex_memory(RECT *rect, DWORD xoffset, DWORD yoffset, v
DWORD
i
;
WORD
*
src
=
(
WORD
*
)
(((
BYTE
*
)
src_d
->
lpSurface
)
+
(
bpp
*
rect
->
left
)
+
(
src_d
->
u1
.
lPitch
*
rect
->
top
)),
*
dst
;
if
(
*
temp_buffer
!
=
NULL
)
if
(
*
temp_buffer
=
=
NULL
)
*
temp_buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
current_tex_width
*
current_tex_height
*
sizeof
(
WORD
));
dst
=
(
WORD
*
)
*
temp_buffer
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment