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
66aa7e03
Commit
66aa7e03
authored
Dec 16, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Dec 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the TextureAddress render state.
parent
998236b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mesa.c
dlls/ddraw/mesa.c
+18
-0
No files found.
dlls/ddraw/mesa.c
View file @
66aa7e03
...
@@ -66,6 +66,24 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
...
@@ -66,6 +66,24 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
}
}
}
break
;
}
break
;
case
D3DRENDERSTATE_TEXTUREADDRESSU
:
case
D3DRENDERSTATE_TEXTUREADDRESSV
:
case
D3DRENDERSTATE_TEXTUREADDRESS
:
{
/* 3 */
GLenum
arg
=
GL_REPEAT
;
/* Default value */
switch
((
D3DTEXTUREADDRESS
)
dwRenderState
)
{
case
D3DTADDRESS_WRAP
:
arg
=
GL_REPEAT
;
break
;
case
D3DTADDRESS_CLAMP
:
arg
=
GL_CLAMP
;
break
;
case
D3DTADDRESS_BORDER
:
arg
=
GL_CLAMP_TO_EDGE
;
break
;
default:
ERR
(
"Unhandled TEXTUREADDRESS mode !
\n
"
);
}
if
((
dwRenderStateType
==
D3DRENDERSTATE_TEXTUREADDRESSU
)
||
(
dwRenderStateType
==
D3DRENDERSTATE_TEXTUREADDRESS
))
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_WRAP_S
,
arg
);
if
((
dwRenderStateType
==
D3DRENDERSTATE_TEXTUREADDRESSV
)
||
(
dwRenderStateType
==
D3DRENDERSTATE_TEXTUREADDRESS
))
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_WRAP_T
,
arg
);
}
break
;
case
D3DRENDERSTATE_TEXTUREPERSPECTIVE
:
/* 4 */
case
D3DRENDERSTATE_TEXTUREPERSPECTIVE
:
/* 4 */
if
(
dwRenderState
)
if
(
dwRenderState
)
glHint
(
GL_PERSPECTIVE_CORRECTION_HINT
,
GL_NICEST
);
glHint
(
GL_PERSPECTIVE_CORRECTION_HINT
,
GL_NICEST
);
...
...
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