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
2a7f46d0
Commit
2a7f46d0
authored
Apr 19, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Apr 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make codesampler texture addressing mode sample work better.
Add mirrorsupport (if opengl 1.3) and make clamp and border appear more similar to Windows.
parent
381e6475
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
device.c
dlls/d3d8/device.c
+9
-5
No files found.
dlls/d3d8/device.c
View file @
2a7f46d0
...
...
@@ -3446,11 +3446,15 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState(LPDIRECT3DDEVICE8 ifa
GLint
wrapParm
=
GL_REPEAT
;
switch
(
Value
)
{
case
D3DTADDRESS_WRAP
:
wrapParm
=
GL_REPEAT
;
break
;
case
D3DTADDRESS_CLAMP
:
wrapParm
=
GL_CLAMP
;
break
;
case
D3DTADDRESS_BORDER
:
wrapParm
=
GL_CLAMP_TO_EDGE
;
break
;
case
D3DTADDRESS_MIRROR
:
/* Unsupported in OpenGL? */
case
D3DTADDRESS_MIRRORONCE
:
/* Unsupported in OpenGL? */
case
D3DTADDRESS_CLAMP
:
wrapParm
=
GL_CLAMP_TO_EDGE
;
break
;
case
D3DTADDRESS_BORDER
:
wrapParm
=
GL_REPEAT
;
break
;
/* FIXME: Not right, but better */
#if defined(GL_VERSION_1_3)
case
D3DTADDRESS_MIRROR
:
wrapParm
=
GL_MIRRORED_REPEAT_ARB
;
break
;
case
D3DTADDRESS_MIRRORONCE
:
/* Unsupported in OpenGL but pretent mirror */
#else
case
D3DTADDRESS_MIRROR
:
/* Unsupported in OpenGL pre-1.4 */
case
D3DTADDRESS_MIRRORONCE
:
/* Unsupported in OpenGL */
#endif
default:
FIXME
(
"Unrecognized or unsupported D3DTADDRESS_* value %ld, state %d
\n
"
,
Value
,
Type
);
wrapParm
=
GL_REPEAT
;
...
...
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