mirror of
https://github.com/nigels-com/glew.git
synced 2025-07-01 19:17:41 +00:00
gcc: Resolve compilation warnings in EGL mode
This commit is contained in:
parent
c1e0fc488d
commit
68710dd920
@ -195,7 +195,6 @@ GLboolean glewCreateContext (struct createParams *params)
|
||||
EGLDeviceEXT devices[1];
|
||||
EGLint numDevices;
|
||||
EGLSurface surface;
|
||||
EGLint majorVersion, minorVersion;
|
||||
EGLint configAttribs[] = {
|
||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||
EGL_RED_SIZE, 1,
|
||||
@ -229,6 +228,8 @@ GLboolean glewCreateContext (struct createParams *params)
|
||||
PFNEGLMAKECURRENTPROC makeCurrent = NULL;
|
||||
PFNEGLCREATEPBUFFERSURFACEPROC createPbufferSurface = NULL;
|
||||
|
||||
(void) params; /* not used */
|
||||
|
||||
/* Load necessary entry points */
|
||||
queryDevices = (PFNEGLQUERYDEVICESEXTPROC) eglGetProcAddress("eglQueryDevicesEXT");
|
||||
getPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress("eglGetPlatformDisplayEXT");
|
||||
@ -483,6 +484,7 @@ void glewDestroyContext ()
|
||||
GLboolean glewCreateContext (struct createParams *params)
|
||||
{
|
||||
/* TODO: Haiku: We need to call C++ code here */
|
||||
(void) params; /* not used */
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
@ -260,6 +260,7 @@ void PrintExtensions (const char* s)
|
||||
void
|
||||
VisualInfo (GLContext* ctx)
|
||||
{
|
||||
(void) ctx; /* not used */
|
||||
}
|
||||
|
||||
#elif defined(_WIN32)
|
||||
@ -1049,13 +1050,13 @@ void InitContext (GLContext* ctx)
|
||||
|
||||
GLboolean CreateContext (GLContext* ctx)
|
||||
{
|
||||
(void) ctx; /* not used */
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
void DestroyContext (GLContext* ctx)
|
||||
{
|
||||
if (NULL == ctx) return;
|
||||
return;
|
||||
(void) ctx; /* not used */
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
Loading…
Reference in New Issue
Block a user