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
88f746ab
Commit
88f746ab
authored
Dec 15, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Filter out some shader compilation spam.
parent
6e76cc76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+20
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
88f746ab
...
...
@@ -56,6 +56,14 @@ void print_glsl_info_log(WineD3D_GL_Info *gl_info, GLhandleARB obj) {
int
infologLength
=
0
;
char
*
infoLog
;
int
i
;
BOOL
is_spam
;
const
char
*
spam
[]
=
{
"Vertex shader was successfully compiled to run on hardware.
\n
"
,
/* fglrx */
"Fragment shader was successfully compiled to run on hardware.
\n
"
,
/* fglrx */
"Fragment shader(s) linked, vertex shader(s) linked."
/* fglrx, no \n */
};
GL_EXTCALL
(
glGetObjectParameterivARB
(
obj
,
GL_OBJECT_INFO_LOG_LENGTH_ARB
,
...
...
@@ -67,7 +75,19 @@ void print_glsl_info_log(WineD3D_GL_Info *gl_info, GLhandleARB obj) {
{
infoLog
=
HeapAlloc
(
GetProcessHeap
(),
0
,
infologLength
);
GL_EXTCALL
(
glGetInfoLogARB
(
obj
,
infologLength
,
NULL
,
infoLog
));
is_spam
=
FALSE
;
for
(
i
=
0
;
i
<
sizeof
(
spam
)
/
sizeof
(
spam
[
0
]);
i
++
)
{
if
(
strcmp
(
infoLog
,
spam
[
i
])
==
0
)
{
is_spam
=
TRUE
;
break
;
}
}
if
(
is_spam
)
{
TRACE
(
"Spam received from GLSL shader #%u: %s
\n
"
,
obj
,
debugstr_a
(
infoLog
));
}
else
{
FIXME
(
"Error received from GLSL shader #%u: %s
\n
"
,
obj
,
debugstr_a
(
infoLog
));
}
HeapFree
(
GetProcessHeap
(),
0
,
infoLog
);
}
}
...
...
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