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
7f09eb6a
Commit
7f09eb6a
authored
Dec 08, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass an IWineD3DDeviceImpl pointer to free_private().
parent
4ba3b64c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+2
-2
device.c
dlls/wined3d/device.c
+3
-3
surface.c
dlls/wined3d/surface.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
7f09eb6a
...
...
@@ -6514,8 +6514,8 @@ static HRESULT arbfp_blit_alloc(IWineD3DDeviceImpl *device)
}
/* Context activation is done by the caller. */
static
void
arbfp_blit_free
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
void
arbfp_blit_free
(
IWineD3DDevice
Impl
*
device
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
struct
arbfp_blit_priv
*
priv
=
device
->
blit_priv
;
...
...
dlls/wined3d/device.c
View file @
7f09eb6a
...
...
@@ -2050,7 +2050,7 @@ err_out:
This
->
stateBlock
=
NULL
;
}
if
(
This
->
blit_priv
)
{
This
->
blitter
->
free_private
(
iface
);
This
->
blitter
->
free_private
(
This
);
}
if
(
This
->
fragment_priv
)
{
This
->
frag_pipe
->
free_private
(
This
);
...
...
@@ -2185,7 +2185,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
}
/* Destroy the shader backend. Note that this has to happen after all shaders are destroyed. */
This
->
blitter
->
free_private
(
iface
);
This
->
blitter
->
free_private
(
This
);
This
->
frag_pipe
->
free_private
(
This
);
This
->
shader_backend
->
shader_free_private
(
This
);
...
...
@@ -6199,7 +6199,7 @@ static void delete_opengl_contexts(IWineD3DDevice *iface, IWineD3DSwapChainImpl
}
LEAVE_GL
();
This
->
blitter
->
free_private
(
iface
);
This
->
blitter
->
free_private
(
This
);
This
->
frag_pipe
->
free_private
(
This
);
This
->
shader_backend
->
shader_free_private
(
This
);
destroy_dummy_textures
(
This
,
gl_info
);
...
...
dlls/wined3d/surface.c
View file @
7f09eb6a
...
...
@@ -4734,7 +4734,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
static
HRESULT
ffp_blit_alloc
(
IWineD3DDeviceImpl
*
device
)
{
return
WINED3D_OK
;
}
/* Context activation is done by the caller. */
static
void
ffp_blit_free
(
IWineD3DDevice
*
ifa
ce
)
{
}
static
void
ffp_blit_free
(
IWineD3DDevice
Impl
*
devi
ce
)
{
}
/* This function is used in case of 8bit paletted textures using GL_EXT_paletted_texture */
/* Context activation is done by the caller. */
...
...
@@ -4871,7 +4871,7 @@ static HRESULT cpu_blit_alloc(IWineD3DDeviceImpl *device)
}
/* Context activation is done by the caller. */
static
void
cpu_blit_free
(
IWineD3DDevice
*
ifa
ce
)
static
void
cpu_blit_free
(
IWineD3DDevice
Impl
*
devi
ce
)
{
}
...
...
dlls/wined3d/wined3d_private.h
View file @
7f09eb6a
...
...
@@ -1176,7 +1176,7 @@ enum blit_operation
struct
blit_shader
{
HRESULT
(
*
alloc_private
)(
IWineD3DDeviceImpl
*
device
);
void
(
*
free_private
)(
IWineD3DDevice
*
ifa
ce
);
void
(
*
free_private
)(
IWineD3DDevice
Impl
*
devi
ce
);
HRESULT
(
*
set_shader
)(
IWineD3DDevice
*
iface
,
IWineD3DSurfaceImpl
*
surface
);
void
(
*
unset_shader
)(
IWineD3DDevice
*
iface
);
BOOL
(
*
blit_supported
)(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
...
...
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