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
29451809
Commit
29451809
authored
Mar 13, 2023
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_get_line() in shader_glsl_compile().
parent
4144f2e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+6
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
29451809
...
@@ -555,14 +555,18 @@ void print_glsl_info_log(const struct wined3d_gl_info *gl_info, GLuint id, BOOL
...
@@ -555,14 +555,18 @@ void print_glsl_info_log(const struct wined3d_gl_info *gl_info, GLuint id, BOOL
/* Context activation is done by the caller. */
/* Context activation is done by the caller. */
static
void
shader_glsl_compile
(
const
struct
wined3d_gl_info
*
gl_info
,
GLuint
shader
,
const
char
*
src
)
static
void
shader_glsl_compile
(
const
struct
wined3d_gl_info
*
gl_info
,
GLuint
shader
,
const
char
*
src
)
{
{
const
char
*
ptr
,
*
line
;
const
char
*
ptr
,
*
end
,
*
line
;
TRACE
(
"Compiling shader object %u.
\n
"
,
shader
);
TRACE
(
"Compiling shader object %u.
\n
"
,
shader
);
if
(
TRACE_ON
(
d3d_shader
))
if
(
TRACE_ON
(
d3d_shader
))
{
{
ptr
=
src
;
ptr
=
src
;
while
((
line
=
get_info_log_line
(
&
ptr
)))
TRACE_
(
d3d_shader
)(
" %.*s"
,
(
int
)(
ptr
-
line
),
line
);
end
=
ptr
+
strlen
(
ptr
);
while
((
line
=
wined3d_get_line
(
&
ptr
,
end
)))
{
TRACE_
(
d3d_shader
)(
" %.*s"
,
(
int
)(
ptr
-
line
),
line
);
}
}
}
GL_EXTCALL
(
glShaderSource
(
shader
,
1
,
&
src
,
NULL
));
GL_EXTCALL
(
glShaderSource
(
shader
,
1
,
&
src
,
NULL
));
...
...
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