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
728932f2
Commit
728932f2
authored
Sep 17, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't needlessly bind the texture in PreLoad().
parent
17330c03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5 deletions
+0
-5
cubetexture.c
dlls/wined3d/cubetexture.c
+0
-1
texture.c
dlls/wined3d/texture.c
+0
-2
volumetexture.c
dlls/wined3d/volumetexture.c
+0
-2
No files found.
dlls/wined3d/cubetexture.c
View file @
728932f2
...
...
@@ -123,7 +123,6 @@ static void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
srgb_was_toggled
=
(
This
->
baseTexture
.
is_srgb
!=
srgb_mode
);
This
->
baseTexture
.
is_srgb
=
srgb_mode
;
}
IWineD3DCubeTexture_BindTexture
(
iface
);
if
(
This
->
resource
.
format
==
WINED3DFMT_P8
||
This
->
resource
.
format
==
WINED3DFMT_A8P8
)
{
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
i
++
)
{
...
...
dlls/wined3d/texture.c
View file @
728932f2
...
...
@@ -114,8 +114,6 @@ static void WINAPI IWineD3DTextureImpl_PreLoad(IWineD3DTexture *iface) {
This
->
baseTexture
.
is_srgb
=
srgb_mode
;
}
IWineD3DTexture_BindTexture
(
iface
);
if
(
This
->
resource
.
format
==
WINED3DFMT_P8
||
This
->
resource
.
format
==
WINED3DFMT_A8P8
)
{
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
i
++
)
{
if
(
palette9_changed
((
IWineD3DSurfaceImpl
*
)
This
->
surfaces
[
i
]))
{
...
...
dlls/wined3d/volumetexture.c
View file @
728932f2
...
...
@@ -100,8 +100,6 @@ static void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *ifac
TRACE
(
"(%p) : About to load texture
\n
"
,
This
);
IWineD3DVolumeTexture_BindTexture
(
iface
);
if
(
!
device
->
isInDraw
)
{
ActivateContext
(
device
,
device
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
else
if
(
GL_SUPPORT
(
EXT_TEXTURE_SRGB
)
&&
This
->
baseTexture
.
bindCount
>
0
)
{
...
...
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