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
4c66141c
Commit
4c66141c
authored
Dec 17, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a function to destroy dummy textures.
The next patch uses this.
parent
7fe3ab5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
device.c
dlls/wined3d/device.c
+12
-11
No files found.
dlls/wined3d/device.c
View file @
4c66141c
...
...
@@ -1368,6 +1368,17 @@ static void create_dummy_textures(IWineD3DDeviceImpl *This)
LEAVE_GL
();
}
/* Context activation is done by the caller. */
static
void
destroy_dummy_textures
(
IWineD3DDeviceImpl
*
device
,
const
struct
wined3d_gl_info
*
gl_info
)
{
ENTER_GL
();
glDeleteTextures
(
gl_info
->
limits
.
textures
,
device
->
dummyTextureName
);
checkGLcall
(
"glDeleteTextures(gl_info->limits.textures, device->dummyTextureName)"
);
LEAVE_GL
();
memset
(
device
->
dummyTextureName
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummyTextureName
));
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Init3D
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
...
...
@@ -6240,7 +6251,6 @@ void delete_opengl_contexts(IWineD3DDevice *iface, IWineD3DSwapChain *swapchain_
IWineD3DSwapChainImpl
*
swapchain
=
(
IWineD3DSwapChainImpl
*
)
swapchain_iface
;
const
struct
wined3d_gl_info
*
gl_info
;
struct
wined3d_context
*
context
;
UINT
i
;
IWineD3DBaseShaderImpl
*
shader
;
context
=
context_acquire
(
This
,
NULL
,
CTXUSAGE_RESOURCELOAD
);
...
...
@@ -6267,16 +6277,7 @@ void delete_opengl_contexts(IWineD3DDevice *iface, IWineD3DSwapChain *swapchain_
This
->
blitter
->
free_private
(
iface
);
This
->
frag_pipe
->
free_private
(
iface
);
This
->
shader_backend
->
shader_free_private
(
iface
);
ENTER_GL
();
for
(
i
=
0
;
i
<
This
->
adapter
->
gl_info
.
limits
.
textures
;
++
i
)
{
/* Textures are recreated below */
glDeleteTextures
(
1
,
&
This
->
dummyTextureName
[
i
]);
checkGLcall
(
"glDeleteTextures(1, &This->dummyTextureName[i])"
);
This
->
dummyTextureName
[
i
]
=
0
;
}
LEAVE_GL
();
destroy_dummy_textures
(
This
,
gl_info
);
context_release
(
context
);
...
...
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