Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
edc43c19
Commit
edc43c19
authored
Oct 29, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix colorized framebuffer output on some GPUs.
parent
f615c462
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+3
-3
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
edc43c19
...
...
@@ -215,6 +215,9 @@ void OPENGL_GAL::EndDrawing()
compositor
.
SetBuffer
(
overlayBuffer
);
overlayManager
.
EndDrawing
();
// Be sure that the framebuffer is not colorized (happens on specific GPU&drivers combinations)
glColor4d
(
1.0
,
1.0
,
1.0
,
1.0
);
// Draw the remaining contents, blit the rendering targets to the screen, swap the buffers
compositor
.
DrawBuffer
(
mainBuffer
);
compositor
.
DrawBuffer
(
overlayBuffer
);
...
...
@@ -980,9 +983,6 @@ void OPENGL_GAL::blitCursor()
glVertex2d
(
cursorBegin
.
x
,
cursorCenter
.
y
);
glVertex2d
(
cursorEnd
.
x
,
cursorCenter
.
y
);
glEnd
();
// Restore the default color, so textures will be drawn properly
glColor4d
(
1.0
,
1.0
,
1.0
,
1.0
);
}
...
...
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