summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2017-11-15 18:49:30 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-11-15 18:49:30 +0000
commit81be9993fc65414fea8a76c8e8e37122c1542da7 (patch)
treee0ffee16e9cd0efff4b3a059823dc0be04ee81fa /opengl/tests/gl_basic/gl_basic.cpp
parent63f1be59721c38841c30b8940776a80563cf2c6a (diff)
parente73db2919065b5275e625ef2b3ccfa8b57d98fb4 (diff)
Merge "Use -Werror in frameworks/native/opengl/tests" am: 5de5abdef3 am: 7b8ff05d85
am: e73db29190 Change-Id: Ie3b34b143a236f296a16b48b15dcfb10452f543c
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
-rw-r--r--opengl/tests/gl_basic/gl_basic.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/opengl/tests/gl_basic/gl_basic.cpp b/opengl/tests/gl_basic/gl_basic.cpp
index 0b663f796f..a675c7c5bd 100644
--- a/opengl/tests/gl_basic/gl_basic.cpp
+++ b/opengl/tests/gl_basic/gl_basic.cpp
@@ -191,8 +191,6 @@ int printEGLConfigurations(EGLDisplay dpy) {
int main(int /*argc*/, char **/*argv*/)
{
- int q;
- int start, end;
printf("Initializing EGL...\n");
WindowSurface windowSurface;
if(!init_gl_surface(windowSurface))
@@ -212,7 +210,6 @@ int main(int /*argc*/, char **/*argv*/)
int init_gl_surface(const WindowSurface& windowSurface)
{
- EGLint numConfigs = 1;
EGLConfig myConfig = {0};
EGLint attrib[] =
{
@@ -265,7 +262,6 @@ int init_gl_surface(const WindowSurface& windowSurface)
checkEglError("eglQuerySurface");
eglQuerySurface(eglDisplay, eglSurface, EGL_HEIGHT, &h);
checkEglError("eglQuerySurface");
- GLint dim = w < h ? w : h;
fprintf(stderr, "Window dimensions: %d x %d\n", w, h);
@@ -336,9 +332,6 @@ void create_texture(void)
void render()
{
- int i, j;
- int quads = 1;
-
const GLfloat vertices[] = {
-1, -1, 0,
1, -1, 0,