浏览代码

egl: Remove _eglFindAPIs.

This function is not used and should have been removed by last commit.
My mistake.
tags/7.8-rc1
Chia-I Wu 15 年前
父节点
当前提交
cecc33cd4f
共有 2 个文件被更改,包括 0 次插入56 次删除
  1. 0
    52
      src/egl/main/egldriver.c
  2. 0
    4
      src/egl/main/egldriver.h

+ 0
- 52
src/egl/main/egldriver.c 查看文件

@@ -526,58 +526,6 @@ _eglInitDriverFallbacks(_EGLDriver *drv)
}



/**
* Try to determine which EGL APIs (OpenGL, OpenGL ES, OpenVG, etc)
* are supported on the system by looking for standard library names.
*/
EGLint
_eglFindAPIs(void)
{
EGLint mask = 0x0;
lib_handle lib;
#if defined(_EGL_PLATFORM_WINDOWS)
/* XXX not sure about these names */
const char *es1_libname = "libGLESv1_CM.dll";
const char *es2_libname = "libGLESv2.dll";
const char *gl_libname = "OpenGL32.dll";
const char *vg_libname = "libOpenVG.dll";
#elif defined(_EGL_PLATFORM_POSIX)
const char *es1_libname = "libGLESv1_CM.so";
const char *es2_libname = "libGLESv2.so";
const char *gl_libname = "libGL.so";
const char *vg_libname = "libOpenVG.so";
#else /* _EGL_PLATFORM_NO_OS */
const char *es1_libname = NULL;
const char *es2_libname = NULL;
const char *gl_libname = NULL;
const char *vg_libname = NULL;
#endif

if ((lib = open_library(es1_libname))) {
close_library(lib);
mask |= EGL_OPENGL_ES_BIT;
}

if ((lib = open_library(es2_libname))) {
close_library(lib);
mask |= EGL_OPENGL_ES2_BIT;
}

if ((lib = open_library(gl_libname))) {
close_library(lib);
mask |= EGL_OPENGL_BIT;
}

if ((lib = open_library(vg_libname))) {
close_library(lib);
mask |= EGL_OPENVG_BIT;
}

return mask;
}


/**
* Set the probe cache at the given key.
*

+ 0
- 4
src/egl/main/egldriver.h 查看文件

@@ -62,10 +62,6 @@ PUBLIC void
_eglInitDriverFallbacks(_EGLDriver *drv);


PUBLIC EGLint
_eglFindAPIs(void);


PUBLIC void
_eglSetProbeCache(EGLint key, const void *val);


正在加载...
取消
保存