Signed-off-by: Maria Shcherbina <m.shcherbina@samsung.com>
TARGET_OS=`uname -s`
case $TARGET_OS in
MINGW*)
-TARGET_OS="MINGW"
+TARGET_OS="MINGW32"
;;
esac
./configure --disable-static --enable-wgl --disable-cocoa --disable-osmesa --enable-offscreen --disable-glx --disable-x11 --prefix="`pwd`/.." --arch=$TARGET_ARCH && \
make install
make distclean
+;;
+*)
echo "OpenGL acceleration is not currently supported for $TARGET_OS"
;;
esac
MemoryRegion *system_mem = get_system_memory();
setenv("DGLES2_FRONTEND", "offscreen", 1);
+#ifdef _WIN32
+ setenv("DGLES2_BACKEND", "wgl", 0);
+#else
setenv("DGLES2_BACKEND", "glx", 0);
+#endif
setenv("DGLES2_NO_ALPHA", "1", 1);
gles2_State *s = g_malloc0(sizeof(*s));