From: <ka...@us...> - 2010-11-11 21:25:27
|
Revision: 3455 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3455&view=rev Author: kappa1 Date: 2010-11-11 21:25:20 +0000 (Thu, 11 Nov 2010) Log Message: ----------- Changed initial alpha value of glClearColor from 1 to 0 which is set when Initialising the Display. This now matches expected OpenGL behaviour. Thanks to Ryanm for spotting this. If you use FBO's make sure your setting glClearColor properly. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2010-11-05 17:13:56 UTC (rev 3454) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2010-11-11 21:25:20 UTC (rev 3455) @@ -905,7 +905,7 @@ private static void initContext() { // set background clear color - glClearColor(r, g, b, 1.0f); + glClearColor(r, g, b, 0.0f); // Clear window to avoid the desktop "showing through" glClear(GL_COLOR_BUFFER_BIT); update(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |