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
89843f2c
Commit
89843f2c
authored
Mar 10, 2007
by
Fabian Bieler
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set wrapmode for cubemags to clamp regardless of the sampler state.
parent
0d16a7bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
basetexture.c
dlls/wined3d/basetexture.c
+13
-1
No files found.
dlls/wined3d/basetexture.c
View file @
89843f2c
...
...
@@ -279,6 +279,12 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_BindTexture(IWineD3DBaseTexture *iface) {
TRACE
(
"Setting GL_TEXTURE_MAX_LEVEL to %d
\n
"
,
This
->
baseTexture
.
levels
-
1
);
glTexParameteri
(
textureDimensions
,
GL_TEXTURE_MAX_LEVEL
,
This
->
baseTexture
.
levels
-
1
);
checkGLcall
(
"glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels)"
);
if
(
textureDimensions
==
GL_TEXTURE_CUBE_MAP_ARB
)
{
/* Cubemaps are always set to clamp, regardeless of the sampler state. */
glTexParameteri
(
textureDimensions
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP_TO_EDGE
);
glTexParameteri
(
textureDimensions
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP_TO_EDGE
);
glTexParameteri
(
textureDimensions
,
GL_TEXTURE_WRAP_R
,
GL_CLAMP_TO_EDGE
);
}
}
}
else
{
/* this only happened if we've run out of openGL textures */
...
...
@@ -355,7 +361,13 @@ void WINAPI IWineD3DBaseTextureImpl_ApplyStateChanges(IWineD3DBaseTexture *iface
if
(
*
state
<
minLookup
[
WINELOOKUP_WARPPARAM
]
||
*
state
>
maxLookup
[
WINELOOKUP_WARPPARAM
])
{
FIXME
(
"Unrecognized or unsupported WINED3DTADDRESS_* value %d, state %d
\n
"
,
*
state
,
textureObjectSamplerStates
[
i
].
function
);
}
else
{
GLint
wrapParm
=
stateLookup
[
WINELOOKUP_WARPPARAM
][
*
state
-
minLookup
[
WINELOOKUP_WARPPARAM
]];
GLint
wrapParm
;
if
(
textureDimensions
==
GL_TEXTURE_CUBE_MAP_ARB
)
{
/* Cubemaps are always set to clamp, regardeless of the sampler state. */
wrapParm
=
GL_CLAMP_TO_EDGE
;
}
else
{
wrapParm
=
stateLookup
[
WINELOOKUP_WARPPARAM
][
*
state
-
minLookup
[
WINELOOKUP_WARPPARAM
]];
}
TRACE
(
"Setting WRAP_R to %d for %x
\n
"
,
wrapParm
,
textureDimensions
);
glTexParameteri
(
textureDimensions
,
warpLookupType
(
textureObjectSamplerStates
[
i
].
function
),
wrapParm
);
checkGLcall
(
"glTexParameteri(..., GL_TEXTURE_WRAP_R, wrapParm)"
);
...
...
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