diff --git a/src/native/win32/org_lwjgl_Display.cpp b/src/native/win32/org_lwjgl_Display.cpp index a4e10cc9..ca5618c3 100644 --- a/src/native/win32/org_lwjgl_Display.cpp +++ b/src/native/win32/org_lwjgl_Display.cpp @@ -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();