Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
da66dad0
Commit
da66dad0
authored
Jan 02, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle texture addressing the D3D7 way.
parent
ffc8344e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+18
-0
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
da66dad0
...
...
@@ -1324,6 +1324,24 @@ GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState(LPDIRECT3DDEVICE7 iface,
glThis
->
render_state
.
mag
=
gl_state
;
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_MAG_FILTER
,
gl_state
);
break
;
case
D3DTSS_ADDRESS
:
case
D3DTSS_ADDRESSU
:
case
D3DTSS_ADDRESSV
:
{
GLenum
arg
=
GL_REPEAT
;
/* Default value */
switch
((
D3DTEXTUREADDRESS
)
dwState
)
{
case
D3DTADDRESS_WRAP
:
if
(
TRACE_ON
(
ddraw
))
DPRINTF
(
"D3DTADDRESS_WRAP
\n
"
);
arg
=
GL_REPEAT
;
break
;
case
D3DTADDRESS_CLAMP
:
if
(
TRACE_ON
(
ddraw
))
DPRINTF
(
"D3DTADDRESS_CLAMP
\n
"
);
arg
=
GL_CLAMP
;
break
;
case
D3DTADDRESS_BORDER
:
if
(
TRACE_ON
(
ddraw
))
DPRINTF
(
"D3DTADDRESS_BORDER
\n
"
);
arg
=
GL_CLAMP_TO_EDGE
;
break
;
default
:
ERR
(
"Unhandled TEXTUREADDRESS mode %ld !
\n
"
,
dwState
);
}
if
((
d3dTexStageStateType
==
D3DTSS_ADDRESS
)
||
(
d3dTexStageStateType
==
D3DTSS_ADDRESSU
))
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_WRAP_S
,
arg
);
if
((
d3dTexStageStateType
==
D3DTSS_ADDRESS
)
||
(
d3dTexStageStateType
==
D3DTSS_ADDRESSV
))
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_WRAP_T
,
arg
);
}
break
;
default
:
if
(
TRACE_ON
(
ddraw
))
DPRINTF
(
" unhandled.
\n
"
);
...
...
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