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
56a4680b
Commit
56a4680b
authored
Feb 03, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Complain when the hardware may not be able to run a shader.
parent
bb0b4673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+12
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
56a4680b
...
...
@@ -38,6 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d_constants
);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d_caps
);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
#define WINED3D_GLSL_SAMPLE_PROJECTED 0x1
#define WINED3D_GLSL_SAMPLE_RECT 0x2
...
...
@@ -960,6 +961,17 @@ static void shader_generate_glsl_declarations(const struct wined3d_context *cont
max_constantsF
-=
count_bits
(
reg_maps
->
boolean_constants
);
/* Set by driver quirks in directx.c */
max_constantsF
-=
gl_info
->
reserved_glsl_constants
;
if
(
max_constantsF
<
shader
->
limits
.
constant_float
)
{
static
unsigned
int
once
;
if
(
!
once
++
)
ERR_
(
winediag
)(
"The hardware does not support enough uniform components to run this shader,"
" it may not render correctly.
\n
"
);
else
WARN
(
"The hardware does not support enough uniform components to run this shader.
\n
"
);
}
}
else
{
...
...
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