From 8343e2a0cc497ce9ede684e8b80f748ff1400d0c Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 31 Jan 2003 19:04:45 +0000 Subject: [PATCH] Added win32 alpha check --- src/native/win32/org_lwjgl_Display.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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();