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
eb31dcf0
Commit
eb31dcf0
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_dump_program_source().
Thereby removing the last user of get_info_log_line().
parent
29451809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
22 deletions
+10
-22
glsl_shader.c
dlls/wined3d/glsl_shader.c
+10
-22
No files found.
dlls/wined3d/glsl_shader.c
View file @
eb31dcf0
...
@@ -484,22 +484,6 @@ static void shader_glsl_append_imm_ivec(struct wined3d_string_buffer *buffer,
...
@@ -484,22 +484,6 @@ static void shader_glsl_append_imm_ivec(struct wined3d_string_buffer *buffer,
shader_addline
(
buffer
,
")"
);
shader_addline
(
buffer
,
")"
);
}
}
static
const
char
*
get_info_log_line
(
const
char
**
ptr
)
{
const
char
*
p
,
*
q
;
p
=
*
ptr
;
if
(
!
(
q
=
strstr
(
p
,
"
\n
"
)))
{
if
(
!*
p
)
return
NULL
;
*
ptr
+=
strlen
(
p
);
return
p
;
}
*
ptr
=
q
+
1
;
return
p
;
}
/* Context activation is done by the caller. */
/* Context activation is done by the caller. */
void
print_glsl_info_log
(
const
struct
wined3d_gl_info
*
gl_info
,
GLuint
id
,
BOOL
program
)
void
print_glsl_info_log
(
const
struct
wined3d_gl_info
*
gl_info
,
GLuint
id
,
BOOL
program
)
{
{
...
@@ -593,7 +577,7 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
...
@@ -593,7 +577,7 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
GL_EXTCALL
(
glGetAttachedShaders
(
program
,
shader_count
,
NULL
,
shaders
));
GL_EXTCALL
(
glGetAttachedShaders
(
program
,
shader_count
,
NULL
,
shaders
));
for
(
i
=
0
;
i
<
shader_count
;
++
i
)
for
(
i
=
0
;
i
<
shader_count
;
++
i
)
{
{
const
char
*
ptr
,
*
line
;
const
char
*
ptr
,
*
end
,
*
line
;
GLint
tmp
;
GLint
tmp
;
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_SHADER_SOURCE_LENGTH
,
&
tmp
));
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_SHADER_SOURCE_LENGTH
,
&
tmp
));
...
@@ -602,7 +586,7 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
...
@@ -602,7 +586,7 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
{
{
heap_free
(
source
);
heap_free
(
source
);
if
(
!
(
source
=
heap_alloc
_zero
(
tmp
)))
if
(
!
(
source
=
heap_alloc
(
tmp
)))
{
{
ERR
(
"Failed to allocate %d bytes for shader source.
\n
"
,
tmp
);
ERR
(
"Failed to allocate %d bytes for shader source.
\n
"
,
tmp
);
heap_free
(
shaders
);
heap_free
(
shaders
);
...
@@ -611,16 +595,20 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
...
@@ -611,16 +595,20 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
source_size
=
tmp
;
source_size
=
tmp
;
}
}
GL_EXTCALL
(
glGetShaderSource
(
shaders
[
i
],
source_size
,
NULL
,
source
));
ptr
=
source
;
end
=
&
ptr
[
tmp
-
1
];
FIXME
(
"Shader %u:
\n
"
,
shaders
[
i
]);
FIXME
(
"Shader %u:
\n
"
,
shaders
[
i
]);
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_SHADER_TYPE
,
&
tmp
));
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_SHADER_TYPE
,
&
tmp
));
FIXME
(
" GL_SHADER_TYPE: %s.
\n
"
,
debug_gl_shader_type
(
tmp
));
FIXME
(
" GL_SHADER_TYPE: %s.
\n
"
,
debug_gl_shader_type
(
tmp
));
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_COMPILE_STATUS
,
&
tmp
));
GL_EXTCALL
(
glGetShaderiv
(
shaders
[
i
],
GL_COMPILE_STATUS
,
&
tmp
));
FIXME
(
" GL_COMPILE_STATUS: %d.
\n
"
,
tmp
);
FIXME
(
" GL_COMPILE_STATUS: %d.
\n
"
,
tmp
);
FIXME
(
"
\n
"
);
FIXME
(
"
\n
"
);
while
((
line
=
wined3d_get_line
(
&
ptr
,
end
)))
ptr
=
source
;
{
GL_EXTCALL
(
glGetShaderSource
(
shaders
[
i
],
source_size
,
NULL
,
source
)
);
FIXME
(
" %.*s"
,
(
int
)(
ptr
-
line
),
line
);
while
((
line
=
get_info_log_line
(
&
ptr
)))
FIXME
(
" %.*s"
,
(
int
)(
ptr
-
line
),
line
);
}
FIXME
(
"
\n
"
);
FIXME
(
"
\n
"
);
}
}
...
...
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