Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
0e454b1d
Commit
0e454b1d
authored
May 02, 2014
by
Robert Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround of an older nvidia bug added
parent
b451f394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/ACGL/OpenGL/Objects/ShaderProgram.cc
src/ACGL/OpenGL/Objects/ShaderProgram.cc
+3
-0
No files found.
src/ACGL/OpenGL/Objects/ShaderProgram.cc
View file @
0e454b1d
...
...
@@ -118,6 +118,9 @@ SharedLocationMappings ShaderProgram::getAttributeLocations() const
// reserve a string long enought for the longest name:
GLint
longestAttributeName
;
glGetProgramiv
(
mObjectName
,
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
,
&
longestAttributeName
);
if
(
longestAttributeName
==
0
)
return
locationMap
;
// work around an old nvidia bug.
char
*
name
=
new
char
[
longestAttributeName
+
1
];
// get the name and location of each active attribute:
...
...
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