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
fdfabd53
Commit
fdfabd53
authored
Apr 26, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid a compiler warning on old gcc.
parent
f99fc383
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+2
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
fdfabd53
...
...
@@ -255,7 +255,7 @@ static void print_glsl_info_log(const struct wined3d_gl_info *gl_info, GLhandleA
/* GL locking is done by the caller. */
static
void
shader_glsl_dump_program_source
(
const
struct
wined3d_gl_info
*
gl_info
,
GLhandleARB
program
)
{
GLint
i
,
object_count
,
source_size
;
GLint
i
,
object_count
,
source_size
=
-
1
;
GLhandleARB
*
objects
;
char
*
source
=
NULL
;
...
...
@@ -275,7 +275,7 @@ static void shader_glsl_dump_program_source(const struct wined3d_gl_info *gl_inf
GL_EXTCALL
(
glGetObjectParameterivARB
(
objects
[
i
],
GL_OBJECT_SHADER_SOURCE_LENGTH_ARB
,
&
tmp
));
if
(
!
source
||
source_size
<
tmp
)
if
(
source_size
<
tmp
)
{
HeapFree
(
GetProcessHeap
(),
0
,
source
);
...
...
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