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
63902bfd
Commit
63902bfd
authored
Jan 24, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of CheckPostPixelShaderBlendingCapability().
parent
b882a702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
directx.c
dlls/wined3d/directx.c
+4
-14
No files found.
dlls/wined3d/directx.c
View file @
63902bfd
...
...
@@ -3528,16 +3528,6 @@ static BOOL CheckRenderTargetCapability(const struct wined3d_adapter *adapter,
return
FALSE
;
}
/* Check if a format support blending in combination with pixel shaders */
static
BOOL
CheckPostPixelShaderBlendingCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
format
)
{
/* The flags entry of a format contains the post pixel shader blending capability */
if
(
format
->
flags
&
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
)
return
TRUE
;
return
FALSE
;
}
static
BOOL
CheckWrapAndMipCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
format
)
{
/* OpenGL supports mipmapping on all formats basically. Wrapping is unsupported,
...
...
@@ -3966,7 +3956,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
)
{
if
(
!
CheckPostPixelShaderBlendingCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
))
{
TRACE
(
"[FAILED] - No post pixelshader blending support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -4049,7 +4039,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
)
{
if
(
!
CheckPostPixelShaderBlendingCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
))
{
TRACE
(
"[FAILED] - No post pixelshader blending support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -4132,7 +4122,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
)
{
if
(
!
CheckPostPixelShaderBlendingCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
))
{
TRACE
(
"[FAILED] - No post pixelshader blending support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -4300,7 +4290,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
)
{
if
(
!
CheckPostPixelShaderBlendingCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
))
{
TRACE
(
"[FAILED] - No post pixelshader blending support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
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