summaryrefslogtreecommitdiffstats
path: root/core/jni/android_opengl_EGL14.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/jni/android_opengl_EGL14.cpp')
-rw-r--r--core/jni/android_opengl_EGL14.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/jni/android_opengl_EGL14.cpp b/core/jni/android_opengl_EGL14.cpp
index 26fc261..196004a 100644
--- a/core/jni/android_opengl_EGL14.cpp
+++ b/core/jni/android_opengl_EGL14.cpp
@@ -1,5 +1,4 @@
/*
-**
** Copyright 2012, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -605,7 +604,7 @@ android_eglCreateWindowSurfaceTexture
jint _remaining;
EGLint *attrib_list = (EGLint *) 0;
android::sp<ANativeWindow> window;
- android::sp<android::GLConsumer> surfaceTexture;
+ android::sp<android::GLConsumer> glConsumer;
if (!attrib_list_ref) {
_exception = 1;
@@ -626,12 +625,12 @@ not_valid_surface:
_exceptionMessage = "Make sure the SurfaceView or associated SurfaceHolder has a valid Surface";
goto exit;
}
- surfaceTexture = android::SurfaceTexture_getSurfaceTexture(_env, win);
+ glConsumer = android::SurfaceTexture_getSurfaceTexture(_env, win);
- if (surfaceTexture == NULL)
+ if (glConsumer == NULL)
goto not_valid_surface;
- window = new android::Surface(surfaceTexture->getBufferQueue());
+ window = new android::Surface(glConsumer->getBufferQueue());
if (window == NULL)
goto not_valid_surface;