From b9e26407cbfa4eeeeb06cfa1422a3d7dce24d1d2 Mon Sep 17 00:00:00 2001 From: Rcmaniac25 Date: Wed, 4 Sep 2013 17:48:46 -0400 Subject: [PATCH] Minor change so that OpenGL ES 1.x can be used for BlackBerry --- freeglut/freeglut/src/blackberry/fg_window_blackberry.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/freeglut/freeglut/src/blackberry/fg_window_blackberry.c b/freeglut/freeglut/src/blackberry/fg_window_blackberry.c index 79d82f7..08f6643 100644 --- a/freeglut/freeglut/src/blackberry/fg_window_blackberry.c +++ b/freeglut/freeglut/src/blackberry/fg_window_blackberry.c @@ -65,10 +65,13 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title, /* Set window properties */ int screenFormat = SCREEN_FORMAT_RGBA8888; -#ifdef __X86__ +#ifdef GL_ES_VERSION_2_0 int screenUsage = SCREEN_USAGE_OPENGL_ES2; -#else - int screenUsage = SCREEN_USAGE_DISPLAY | SCREEN_USAGE_OPENGL_ES2; // Physical device copy directly into physical display +#elif GL_VERSION_ES_CM_1_0 || GL_VERSION_ES_CL_1_0 || GL_VERSION_ES_CM_1_1 || GL_VERSION_ES_CL_1_1 + int screenUsage = SCREEN_USAGE_OPENGL_ES1; +#endif +#ifndef __X86__ + screenUsage |= SCREEN_USAGE_DISPLAY; // Physical device copy directly into physical display #endif if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_FORMAT, &screenFormat)) { screen_destroy_window(sWindow);