graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 19f7e996ff424ebe11b337e26ff69b902db4b499
parent a6d84128679b80c2bacdb776a19ff1654e63b357
Author: Brian Swetland <swetland@frotz.net>
Date:   Sun, 15 Sep 2013 05:33:07 -0700

app: don't clear framebuffer and enable depth testing

apps may have different rendering needs. let them decide.

Diffstat:
Mcommon/glapp.cc | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/common/glapp.cc b/common/glapp.cc @@ -272,8 +272,6 @@ int App::start(void) { unsigned b = SDL_GetRelativeMouseState(&mouseDX, &mouseDY); mouseBTN = (b & 1) | ((b & 2) << 1) | ((b & 4) >> 1); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glEnable(GL_DEPTH_TEST); render(); if (_vsync) {