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
5cd787b3
Commit
5cd787b3
authored
May 02, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Introduce a separate structure for OpenGL context information.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bad9cd29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
context.c
dlls/wined3d/context.c
+4
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+5
-0
No files found.
dlls/wined3d/context.c
View file @
5cd787b3
...
...
@@ -1886,6 +1886,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
struct
wined3d_texture
*
target
,
const
struct
wined3d_format
*
ds_format
)
{
struct
wined3d_device
*
device
=
swapchain
->
device
;
struct
wined3d_context_gl
*
context_gl
;
struct
wined3d_context
*
context
;
DWORD
state
;
...
...
@@ -1893,8 +1894,9 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
wined3d_from_cs
(
device
->
cs
);
if
(
!
(
context
=
heap_alloc_zero
(
sizeof
(
*
context
))))
if
(
!
(
context
_gl
=
heap_alloc_zero
(
sizeof
(
*
context_gl
))))
return
NULL
;
context
=
&
context_gl
->
c
;
list_init
(
&
context
->
timestamp_queries
);
list_init
(
&
context
->
occlusion_queries
);
...
...
@@ -1977,7 +1979,7 @@ out:
wined3d_release_dc
(
swapchain
->
win_handle
,
context
->
hdc
);
device
->
shader_backend
->
shader_free_context_data
(
context
);
device
->
adapter
->
fragment_pipe
->
free_context_data
(
context
);
heap_free
(
context
);
heap_free
(
context
_gl
);
return
NULL
;
}
...
...
dlls/wined3d/wined3d_private.h
View file @
5cd787b3
...
...
@@ -2029,6 +2029,11 @@ struct wined3d_context
unsigned
int
scissor_rect_count
;
};
struct
wined3d_context_gl
{
struct
wined3d_context
c
;
};
struct
wined3d_fb_state
{
struct
wined3d_rendertarget_view
*
render_targets
[
MAX_RENDER_TARGET_VIEWS
];
...
...
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