From 142ed5bf31cab1339f9e9d4354050aa4eae319e4 Mon Sep 17 00:00:00 2001 From: Yochai Shefi Simchon Date: Wed, 3 Aug 2011 18:06:45 +0300 Subject: [PATCH] opengles emulator: fix initialization of vertex attribute fix the default values of vertex attrib array to match gles spec size should be initialized to 4, and type should be initialized to GL_FLOAT Change-Id: If23b3aec574ca660181be2ef1c91de1de2b07a70 --- .../opengl/host/libs/Translator/GLcommon/GLESpointer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESpointer.cpp b/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESpointer.cpp index b7fe9b002..372257ee6 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESpointer.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESpointer.cpp @@ -16,8 +16,8 @@ #include #include -GLESpointer::GLESpointer():m_size(0), - m_type(0), +GLESpointer::GLESpointer():m_size(4), + m_type(GL_FLOAT), m_stride(0), m_enabled(false), m_normalize(false),