From f28e1b6018e8ebb46fbe2777af6a550df0e8cad3 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Wed, 29 Nov 2006 14:15:42 +0000 Subject: clear first and second buffer of GLContext --- src/jake2/render/opengl/Jsr231Driver.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3