Skip to content
GitLab
Menu
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
70de835d
Commit
70de835d
authored
Jan 21, 2015
by
Robert Menzel
Browse files
removed left-over error check
parent
f2979219
Changes
1
Show whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Objects/ShaderProgram.hh
View file @
70de835d
...
...
@@ -133,7 +133,7 @@ public:
inline
GLuint
getUniformBlockIndex
(
const
std
::
string
&
_nameInShader
)
const
{
return
glGetUniformBlockIndex
(
mObjectName
,
_nameInShader
.
c_str
());
}
//! binds a uniform block, the string version will ignore a non-existent block
inline
void
setUniformBlockBinding
(
GLuint
_blockIndex
,
GLuint
_bindingPoint
)
const
{
glUniformBlockBinding
(
mObjectName
,
_blockIndex
,
_bindingPoint
);
openGLCommonError
();
}
inline
void
setUniformBlockBinding
(
GLuint
_blockIndex
,
GLuint
_bindingPoint
)
const
{
glUniformBlockBinding
(
mObjectName
,
_blockIndex
,
_bindingPoint
);
}
inline
void
setUniformBlockBinding
(
const
std
::
string
&
_blockName
,
GLuint
_bindingPoint
)
const
{
GLuint
blockIndex
=
getUniformBlockIndex
(
_blockName
);
if
(
blockIndex
!=
GL_INVALID_INDEX
)
glUniformBlockBinding
(
mObjectName
,
blockIndex
,
_bindingPoint
);
...
...
Write
Preview
Supports
Markdown
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