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
e795ddb3
Commit
e795ddb3
authored
Aug 06, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store clip control support in struct wined3d_d3d_info.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d4fa7e4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
adapter_gl.c
dlls/wined3d/adapter_gl.c
+1
-0
utils.c
dlls/wined3d/utils.c
+5
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/adapter_gl.c
View file @
e795ddb3
...
...
@@ -3796,6 +3796,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
d3d_info
->
texture_swizzle
=
!!
gl_info
->
supported
[
ARB_TEXTURE_SWIZZLE
];
d3d_info
->
srgb_read_control
=
!!
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
];
d3d_info
->
srgb_write_control
=
!!
gl_info
->
supported
[
ARB_FRAMEBUFFER_SRGB
];
d3d_info
->
clip_control
=
!!
gl_info
->
supported
[
ARB_CLIP_CONTROL
];
if
(
gl_info
->
supported
[
ARB_TEXTURE_MULTISAMPLE
])
d3d_info
->
multisample_draw_location
=
WINED3D_LOCATION_TEXTURE_RGB
;
...
...
dlls/wined3d/utils.c
View file @
e795ddb3
...
...
@@ -5392,8 +5392,8 @@ void get_modelview_matrix(const struct wined3d_context *context, const struct wi
void
get_projection_matrix
(
const
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
struct
wined3d_matrix
*
mat
)
{
BOOL
clip_control
=
context
->
gl_info
->
supported
[
ARB_CLIP_CONTROL
]
;
BOOL
flip
=
!
clip_control
&&
context
->
render_offscreen
;
const
struct
wined3d_d3d_info
*
d3d_info
=
context
->
d3d_info
;
BOOL
clip_control
,
flip
;
float
center_offset
;
/* There are a couple of additional things we have to take into account
...
...
@@ -5411,7 +5411,9 @@ void get_projection_matrix(const struct wined3d_context *context, const struct w
* driver, but small enough to prevent it from interfering with any
* anti-aliasing. */
if
(
!
clip_control
&&
context
->
d3d_info
->
wined3d_creation_flags
&
WINED3D_PIXEL_CENTER_INTEGER
)
clip_control
=
d3d_info
->
clip_control
;
flip
=
!
clip_control
&&
context
->
render_offscreen
;
if
(
!
clip_control
&&
d3d_info
->
wined3d_creation_flags
&
WINED3D_PIXEL_CENTER_INTEGER
)
center_offset
=
63
.
0
f
/
64
.
0
f
;
else
center_offset
=
-
1
.
0
f
/
64
.
0
f
;
...
...
dlls/wined3d/wined3d_private.h
View file @
e795ddb3
...
...
@@ -214,6 +214,7 @@ struct wined3d_d3d_info
uint32_t
texture_swizzle
:
1
;
uint32_t
srgb_read_control
:
1
;
uint32_t
srgb_write_control
:
1
;
uint32_t
clip_control
:
1
;
enum
wined3d_feature_level
feature_level
;
DWORD
multisample_draw_location
;
...
...
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