Push some build fixes when compiling with --disable-opengl --disable-shaderpipeline

This commit is contained in:
twinaphex 2017-01-22 22:18:00 +01:00
parent fa4f538d69
commit 7d624fdedb
3 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include <stdint.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

View File

@ -109,7 +109,6 @@ static gfx_ctx_x_data_t *current_context_data = NULL;
#ifdef HAVE_OPENGL
static PFNGLXCREATECONTEXTATTRIBSARBPROC glx_create_context_attribs;
#endif
static int GLXExtensionSupported(Display *dpy, const char *extension)
{
@ -134,6 +133,7 @@ static int GLXExtensionSupported(Display *dpy, const char *extension)
return 0;
}
#endif
static int x_nul_handler(Display *dpy, XErrorEvent *event)
{

View File

@ -66,6 +66,7 @@ static unsigned to_display_pipeline(
return ((type == MENU_DISPLAY_PRIM_TRIANGLESTRIP) << 1) | (blend << 0);
}
#ifdef HAVE_SHADERPIPELINE
static unsigned to_menu_pipeline(
enum menu_display_prim_type type, unsigned pipeline)
{
@ -79,6 +80,7 @@ static unsigned to_menu_pipeline(
return 0;
}
}
#endif
static void menu_display_vk_viewport(void *data)
{