Hello Guest

[FIXED] Tiny bug in Display.java

  • 1 Replies
  • 3622 Views
*

Offline ryanm

  • *
  • 44
[FIXED] Tiny bug in Display.java
« on: November 11, 2010, 11:15:58 »
Line 908 of Display.java is
Code: [Select]
glClearColor(r, g, b, 1.0f);Having the alpha component hardcoded as 1 contradicts expected OpenGL initial state of 0.

Happily you'll never notice this unless you start rendering into FBOs and have to go spelunking through lwjgl source to find out why your output textures do not have the expected transparency.

Unhappily, fixing this by just changing the 1.0f to 0 might silently break code for people who are happy with the current behaviour. On the other hand they are relying on broken behaviour, so maybe the burden is theirs.
« Last Edit: November 11, 2010, 11:52:16 by kappa »

*

Offline kappa

  • *****
  • 1314
Re: [BUG] Tiny bug in Display.java
« Reply #1 on: November 11, 2010, 21:26:47 »
Fixed.