Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acgl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACGL
acgl
Commits
a5020002
Commit
a5020002
authored
13 years ago
by
Janis Born
Browse files
Options
Downloads
Patches
Plain Diff
add hotfix addressing OSX bug in glDrawBuffers
parent
2b58beab
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ACGL/OpenGL/Objects/FrameBufferObject.cc
+13
-0
13 additions, 0 deletions
src/ACGL/OpenGL/Objects/FrameBufferObject.cc
with
13 additions
and
0 deletions
src/ACGL/OpenGL/Objects/FrameBufferObject.cc
+
13
−
0
View file @
a5020002
...
...
@@ -154,6 +154,19 @@ void FrameBufferObject::remapAttachments()
// end debug
bind
();
// glDrawBuffers will get part of the FBO state!
#ifdef __APPLE__
// Somehow, Apple's current (OSX 10.7) OpenGL implementation skips over all
// GL_NONE entries in the bufferMappings array if the only color attachment
// specified is GL_COLOR_ATTACHMENT0.
// This however causes that no change from the initial FBO state is
// detected when the only color attachment should be assigned to a FragData
// location other than 0.
// Hotfix: Temporarily set all draw buffers to GL_NONE before setting the
// actual configuration:
glDrawBuffers
(
0
,
(
GLenum
*
)
NULL
);
#endif // __APPLE__
glDrawBuffers
(
maxColorBuffers
,
bufferMappings
);
delete
[]
bufferMappings
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment