Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4468476
Votes 0
Synopsis Fullscreen mode incompatible with OpenGL
Category java:classes_awt
Reported Against merlin-beta
Release Fixed 1.4(merlin-beta2)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 11-JUN-2001
Description
Using "OpenGL for Java" (www.jausoft.com) to perform OpenGL rendering to AWT
canvases on Win32, switching to fullscreen mode using the existing DirectDraw
implementation causes the screen to become corrupted.

There are known longstanding incompatibilities between DirectDraw, Direct3D and
OpenGL.

Fortunately there appears to be a relatively simple fix. Specifying
-Dsun.java2d.noddraw=true currently causes
GraphicsDevice.isFullScreenSupported() to return false on Win32. This could be
changed to have the following behavior when DirectDraw is disabled:

 - GraphicsDevice.isFullScreenSupported() and isDisplayChangeSupported() could
   return true
 - GraphicsDevice.setFullScreenWindow() could be a no-op (user would be
   responsible for ensuring the window was the appropriate size; in addition,
   undecorated frames already specify the WM_POPUP flag needed to get the full-
   screen window to show up above the Windows taskbar)
 - GraphicsDevice.getDisplayModes() could use the GDI call EnumDisplaySettings()
   to discover the available display modes
 - GraphicsDevice.setDisplayMode() would use the Windows GDI call
   ChangeDisplaySettings listed in the "suggested fix" to change to the
   appropriate display mode.

Have spoken with  xxxxx@xxxxx  about this bug and we agree that it is
something that must be fixed in Merlin.

To run the attached test case, unzip it, add gl4java.jar and
gl4java-glutfonts.jar to $CLASSPATH and GL4JavaJauGljJNI13.dll and
natives/Debug/HiPerfGL.dll to $PATH. Then run "java LoadingScreen".
Work Around
N/A
Evaluation
Needs to be fixed by FCS.  This may also pose a problem for Java3D's OpenGL implementation on Win32.
 xxxxx@xxxxx  2001-06-11
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang