Minimum requirements for PixelFormat is 8 bit depth

This commit is contained in:
Elias Naur 2004-11-29 08:20:13 +00:00
parent fd32c5b9b9
commit 59aa0586f7
1 changed files with 5 additions and 1 deletions

View File

@ -70,8 +70,12 @@ public final class PixelFormat {
/** Whether this format represents a stereo buffer or not */
private final boolean stereo;
/**
* Default pixel format is minimum 8 bits depth, and no alpha
* nor stencil requirements.
*/
public PixelFormat() {
this(0, 0, 0);
this(0, 8, 0);
}
public PixelFormat(int alpha, int depth, int stencil) {