diff options
author | Carsten Weisse <[email protected]> | 2006-11-29 14:15:42 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-29 14:15:42 +0000 |
commit | f28e1b6018e8ebb46fbe2777af6a550df0e8cad3 (patch) | |
tree | cb51a6de0af46e7fe3b7e255a26d11149d54f501 /src/jake2/render/opengl | |
parent | 705a61be1c39933d98d216d6d654f6f91c58402b (diff) |
clear first and second buffer of GLContext
Diffstat (limited to 'src/jake2/render/opengl')
-rw-r--r-- | src/jake2/render/opengl/Jsr231Driver.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java index 4e29f4b..fdc0f52 100644 --- a/src/jake2/render/opengl/Jsr231Driver.java +++ b/src/jake2/render/opengl/Jsr231Driver.java @@ -2,7 +2,7 @@ * JoglCommon.java * Copyright (C) 2004 * - * $Id: Jsr231Driver.java,v 1.9 2006-11-29 14:06:50 cawe Exp $ + * $Id: Jsr231Driver.java,v 1.10 2006-11-29 14:15:42 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -251,6 +251,12 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver { window_xpos = xpos; window_ypos = ypos; // clear the screen + // first buffer + beginFrame(0.0f); + glClearColor(0, 0, 0, 0); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + endFrame(); + // second buffer beginFrame(0.0f); glClearColor(0, 0, 0, 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |