LWJGL
May 25, 2013, 13:23:56 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] Tiny bug in Display.java  (Read 1084 times)
ryanm
Newbie
*
Posts: 44


« on: November 11, 2010, 03:15:58 »

Line 908 of Display.java is
Code:
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.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1113



« Reply #1 on: November 11, 2010, 13:26:47 »

Fixed.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!