Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
0e454b1d
Commit
0e454b1d
authored
May 02, 2014
by
Robert Menzel
Browse files
workaround of an older nvidia bug added
parent
b451f394
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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