Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2011-12-26 23:12:13 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2011-12-26 23:12:13 +0400
commit50cc053690abf2ccf2f16b79d998f1e94a881d31 (patch)
tree2ad0d6ca950b1d50eb4a2ba7d2821e77f980f18c /intern
parentd8ab99c147b864bf66347a57b383b7cf0b01fd6b (diff)
Add a glClear() in GHOST/X11 between creating the GLX context and
displaying the window. This fixes a brief flash of random data on Blender startup on my system (Ubuntu 11.10, ATI Mobility Radeon HD 5650, Gallium drivers.) Code review link: http://codereview.appspot.com/5505071/
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowX11.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index d882ae41c9c..5611644f8f2 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -1344,7 +1344,9 @@ installDrawingContext(
if (!s_firstContext) {
s_firstContext = m_context;
}
- glXMakeCurrent(m_display, m_window,m_context);
+ glXMakeCurrent(m_display, m_window,m_context);
+ glClearColor(0.447, 0.447, 0.447, 0);
+ glClear(GL_COLOR_BUFFER_BIT);
success = GHOST_kSuccess;
} else {
success = GHOST_kFailure;