From 89be00bcda2b5965757e83bdf70a650b64373045 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 22 Feb 2013 20:08:06 -0800 Subject: regenerate egl/gles stubs from glgen those are minor cosmetic changes. Change-Id: I84ee5383577f0ca33ed7cc32d03e53c1475f068d --- core/jni/android_opengl_EGL14.cpp | 9 ++++----- core/jni/android_opengl_GLES20.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'core') 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 window; - android::sp surfaceTexture; + android::sp 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; diff --git a/core/jni/android_opengl_GLES20.cpp b/core/jni/android_opengl_GLES20.cpp index c530117..a263f8b 100644 --- a/core/jni/android_opengl_GLES20.cpp +++ b/core/jni/android_opengl_GLES20.cpp @@ -2127,14 +2127,14 @@ android_glGetAttachedShaders__IILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2 } } -/* int glGetAttribLocation ( GLuint program, const char *name ) */ +/* GLint glGetAttribLocation ( GLuint program, const char *name ) */ static jint android_glGetAttribLocation__ILjava_lang_String_2 (JNIEnv *_env, jobject _this, jint program, jstring name) { jint _exception = 0; const char * _exceptionType; const char * _exceptionMessage; - int _returnValue = 0; + GLint _returnValue = 0; const char* _nativename = 0; if (!name) { @@ -3983,14 +3983,14 @@ android_glGetUniformiv__IILjava_nio_IntBuffer_2 } } -/* int glGetUniformLocation ( GLuint program, const char *name ) */ +/* GLint glGetUniformLocation ( GLuint program, const char *name ) */ static jint android_glGetUniformLocation__ILjava_lang_String_2 (JNIEnv *_env, jobject _this, jint program, jstring name) { jint _exception = 0; const char * _exceptionType; const char * _exceptionMessage; - int _returnValue = 0; + GLint _returnValue = 0; const char* _nativename = 0; if (!name) { -- cgit v1.1