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
OpenFlipper-Free
OpenFlipper
Commits
deb2ee91
Commit
deb2ee91
authored
Sep 11, 2017
by
Martin Schultz
Browse files
added defaultVAO binding from QOpenGL branch
parent
37950e18
Changes
2
Hide whitespace changes
Inline
Side-by-side
widgets/glWidget/QtBaseViewer.cc
View file @
deb2ee91
...
...
@@ -1060,6 +1060,18 @@ void glViewer::paintGL(double _aspect)
{
if
(
!
initialized_
)
initializeGL
();
// some drivers in core profile require a VAO object to be bound for all buffer array operations
if
(
!
glstate_
->
compatibilityProfile
())
{
if
(
!
defaultVAO_
.
isSupported
())
std
::
cerr
<<
"Error - using core profile, but required VAO is not supported!"
<<
std
::
endl
;
else
defaultVAO_
.
bind
();
}
if
(
!
properties_
.
updateLocked
())
{
properties_
.
lockUpdate
();
...
...
widgets/glWidget/QtBaseViewer.hh
View file @
deb2ee91
...
...
@@ -620,6 +620,8 @@ private:
// Used to calculate the time passed between redraws
QTime
redrawTime_
;
// Default VAO needed in core profile mode
ACG
::
VertexArrayObject
defaultVAO_
;
#if (QT_VERSION >= QT_VERSION_CHECK(5,1,0))
// Get additional debug info from OpenGL
...
...
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