mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Fix new gcc 4.6 warnings
simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable] etc.
This commit is contained in:
parent
8335568d07
commit
00439617f3
7 changed files with 9 additions and 24 deletions
|
|
@ -153,7 +153,6 @@ create_shader(struct window *window, const char *source, GLenum shader_type)
|
|||
static void
|
||||
init_gl(struct window *window)
|
||||
{
|
||||
GLfloat ar;
|
||||
GLuint frag, vert;
|
||||
GLint status;
|
||||
|
||||
|
|
@ -163,7 +162,6 @@ init_gl(struct window *window)
|
|||
glGenRenderbuffers(1, &window->gl.color_rbo);
|
||||
|
||||
glViewport(0, 0, window->geometry.width, window->geometry.height);
|
||||
ar = (GLfloat)window->geometry.width / (GLfloat)window->geometry.height;
|
||||
|
||||
frag = create_shader(window, frag_shader_text, GL_FRAGMENT_SHADER);
|
||||
vert = create_shader(window, vert_shader_text, GL_VERTEX_SHADER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue