summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cdeae78)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1177
7f0cb862-5218-0410-a997-
914c9d46530a
#include <GL/freeglut.h>
#include "fg_internal.h"
#include <GL/freeglut.h>
#include "fg_internal.h"
-void fghChooseConfigEGL(EGLConfig* config) {
+int fghChooseConfigEGL(EGLConfig* config) {
const EGLint attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
#ifdef GL_ES_VERSION_2_0
const EGLint attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
#ifdef GL_ES_VERSION_2_0
EGLint num_config;
if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display,
EGLint num_config;
if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display,
- attribs, config, 1, &num_config))
- fgError("eglChooseConfig: error %x\n", eglGetError());
+ attribs, config, 1, &num_config)) {
+ fgWarn("eglChooseConfig: error %x\n", eglGetError());
+ return 0;
+ }
+
+ return 1;
#ifndef __FG_WINDOW_EGL_H__
#define __FG_WINDOW_EGL_H__
#ifndef __FG_WINDOW_EGL_H__
#define __FG_WINDOW_EGL_H__
-extern void fghChooseConfigEGL(EGLConfig* config);
+extern int fghChooseConfigEGL(EGLConfig* config);
extern void fghPlatformOpenWindowEGL( SFG_Window* window );
extern void fghCreateNewContextEGL( SFG_Window* window );
extern void fghPlatformCloseWindowEGL( SFG_Window* window );
extern void fghPlatformOpenWindowEGL( SFG_Window* window );
extern void fghCreateNewContextEGL( SFG_Window* window );
extern void fghPlatformCloseWindowEGL( SFG_Window* window );