Added win32 alpha check

This commit is contained in:
Elias Naur 2003-01-31 19:04:45 +00:00
parent 36e785bc77
commit 8343e2a0cc
1 changed files with 6 additions and 0 deletions

View File

@ -383,6 +383,12 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_nCreate
return JNI_FALSE;
}
if (desc.cAlphaBits < alphaBits) {
printf("This application requires a greater alpha depth.\n");
destroyAll();
return JNI_FALSE;
}
if (desc.cStencilBits < stencilBits) {
printf("This application requires a greater stencil depth.\n");
destroyAll();