parent
9728345bf4
commit
a3c97dfad2
|
@ -228,12 +228,15 @@ static bool gl_shader_init(struct gs_shader *shader,
|
||||||
|
|
||||||
char *infoLog = malloc(sizeof(char) * infoLength);
|
char *infoLog = malloc(sizeof(char) * infoLength);
|
||||||
|
|
||||||
GLsizei returnedLength = 0;
|
if (infoLog) {
|
||||||
glGetShaderInfoLog(shader->obj, infoLength, &returnedLength,
|
GLsizei returnedLength = 0;
|
||||||
infoLog);
|
glGetShaderInfoLog(shader->obj, infoLength,
|
||||||
blog(LOG_ERROR, "Error compiling shader:\n%s\n", infoLog);
|
&returnedLength, infoLog);
|
||||||
|
blog(LOG_ERROR, "Error compiling shader:\n%s\n",
|
||||||
|
infoLog);
|
||||||
|
|
||||||
free(infoLog);
|
free(infoLog);
|
||||||
|
}
|
||||||
|
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,6 @@ static xcb_get_geometry_reply_t *get_window_geometry(xcb_connection_t *xcb_conn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(error);
|
|
||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -371,8 +370,7 @@ static Display *open_windowless_display(Display *platform_display)
|
||||||
return display;
|
return display;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (display)
|
XCloseDisplay(display);
|
||||||
XCloseDisplay(display);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,6 @@ static xcb_get_geometry_reply_t *get_window_geometry(xcb_connection_t *xcb_conn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(error);
|
|
||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +194,6 @@ static bool gl_context_create(struct gl_platform *plat)
|
||||||
}
|
}
|
||||||
|
|
||||||
plat->context = context;
|
plat->context = context;
|
||||||
plat->display = display;
|
|
||||||
|
|
||||||
plat->pbuffer =
|
plat->pbuffer =
|
||||||
glXCreatePbuffer(display, config[0], ctx_pbuffer_attribs);
|
glXCreatePbuffer(display, config[0], ctx_pbuffer_attribs);
|
||||||
|
@ -273,8 +271,7 @@ static Display *open_windowless_display(void)
|
||||||
return display;
|
return display;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (display)
|
XCloseDisplay(display);
|
||||||
XCloseDisplay(display);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue