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
32b1f25f
Commit
32b1f25f
authored
Apr 26, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simply pass an IWineD3DSurfaceImpl pointer to surface_force_reload().
parent
553f4299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
surface.c
dlls/wined3d/surface.c
+5
-7
No files found.
dlls/wined3d/surface.c
View file @
32b1f25f
...
...
@@ -463,11 +463,9 @@ HRESULT surface_init(IWineD3DSurfaceImpl *surface, WINED3DSURFTYPE surface_type,
return
hr
;
}
static
void
surface_force_reload
(
IWineD3DSurface
*
i
face
)
static
void
surface_force_reload
(
IWineD3DSurface
Impl
*
sur
face
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
This
->
Flags
&=
~
(
SFLAG_ALLOCATED
|
SFLAG_SRGBALLOCATED
);
surface
->
Flags
&=
~
(
SFLAG_ALLOCATED
|
SFLAG_SRGBALLOCATED
);
}
void
surface_set_texture_name
(
IWineD3DSurface
*
iface
,
GLuint
new_name
,
BOOL
srgb
)
...
...
@@ -499,7 +497,7 @@ void surface_set_texture_name(IWineD3DSurface *iface, GLuint new_name, BOOL srgb
}
*
name
=
new_name
;
surface_force_reload
(
iface
);
surface_force_reload
(
This
);
}
void
surface_set_texture_target
(
IWineD3DSurface
*
iface
,
GLenum
target
)
...
...
@@ -520,7 +518,7 @@ void surface_set_texture_target(IWineD3DSurface *iface, GLenum target)
}
}
This
->
texture_target
=
target
;
surface_force_reload
(
iface
);
surface_force_reload
(
This
);
}
/* Context activation is done by the caller. */
...
...
@@ -2025,7 +2023,7 @@ static void surface_release_client_storage(IWineD3DSurface *iface)
IWineD3DSurface_ModifyLocation
(
iface
,
SFLAG_INSRGBTEX
,
FALSE
);
IWineD3DSurface_ModifyLocation
(
iface
,
SFLAG_INTEXTURE
,
FALSE
);
surface_force_reload
(
iface
);
surface_force_reload
(
This
);
}
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetDC
(
IWineD3DSurface
*
iface
,
HDC
*
pHDC
)
...
...
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