From e7503c8824f656f1ac63b0bcccf4b96ac46c49b0 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 28 Jan 2013 22:17:43 +0100 Subject: [PATCH] [DEV] update display to the nec vector3D --- external/etk | 2 +- sources/ewol/compositing/Drawing.cpp | 2 +- sources/ewol/compositing/Image.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/external/etk b/external/etk index 73efdadd..c79652bb 160000 --- a/external/etk +++ b/external/etk @@ -1 +1 @@ -Subproject commit 73efdadd164efce683c6672717d5d8d8d5959474 +Subproject commit c79652bba2307b48bf2c73ed807e896d173c3225 diff --git a/sources/ewol/compositing/Drawing.cpp b/sources/ewol/compositing/Drawing.cpp index 18a6810f..05d6e15e 100644 --- a/sources/ewol/compositing/Drawing.cpp +++ b/sources/ewol/compositing/Drawing.cpp @@ -324,7 +324,7 @@ void ewol::Drawing::Draw(void) m_GLprogram->Use(); m_GLprogram->UniformMatrix4fv(m_GLMatrix, 1, tmpMatrix.m_mat); // position : - m_GLprogram->SendAttribute(m_GLPosition, 3/*x,y,z,unused*/, &m_coord[0], 4); + m_GLprogram->SendAttribute(m_GLPosition, 3/*x,y,z,unused*/, &m_coord[0], 4*sizeof(btScalar)); // color : m_GLprogram->SendAttribute(m_GLColor, 4/*r,g,b,a*/, &m_coordColor[0]); // Request the draw od the elements : diff --git a/sources/ewol/compositing/Image.cpp b/sources/ewol/compositing/Image.cpp index 9bf9e607..95008f55 100644 --- a/sources/ewol/compositing/Image.cpp +++ b/sources/ewol/compositing/Image.cpp @@ -79,7 +79,7 @@ void ewol::Image::Draw(void) // TextureID m_GLprogram->SetTexture0(m_GLtexID, m_resource->GetId()); // position : - m_GLprogram->SendAttribute(m_GLPosition, 3/*x,y,z,unused*/, &m_coord[0], 4); + m_GLprogram->SendAttribute(m_GLPosition, 3/*x,y,z,unused*/, &m_coord[0], 4*sizeof(btScalar)); // Texture : m_GLprogram->SendAttribute(m_GLtexture, 2/*u,v*/, &m_coordTex[0]); // color :