diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-28 00:25:30 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:08:51 +0200 |
commit | 27fce9349bb1e1a2842ce4e59183d3be1100a552 (patch) | |
tree | 3797e5d3cbdb6adca69f8144fb1509d63db09b1c /slideshow | |
parent | ca82d9e720ea4a07e14dc6becb1d4e4edf3013b5 (diff) |
the values are float now
actually OpenGL does not like double that much
Change-Id: I3267f46072194bb6b2d4705733408e3db44c8c08
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx index 7e37e0e1f253..53524f8d3e7c 100644 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx +++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx @@ -255,7 +255,7 @@ void Primitive::display(double nTime, double WidthScale, double HeightScale) con if(!Normals.empty()) { CHECK_GL_ERROR(); - glNormalPointer( GL_DOUBLE , 0 , &Normals[0] ); + glNormalPointer( GL_FLOAT , 0 , &Normals[0] ); CHECK_GL_ERROR(); glEnableClientState( GL_NORMAL_ARRAY ); CHECK_GL_ERROR(); @@ -263,9 +263,9 @@ void Primitive::display(double nTime, double WidthScale, double HeightScale) con CHECK_GL_ERROR(); glEnableClientState( GL_TEXTURE_COORD_ARRAY ); CHECK_GL_ERROR(); - glTexCoordPointer( 2, GL_DOUBLE, 0, &TexCoords[0] ); + glTexCoordPointer( 2, GL_FLOAT, 0, &TexCoords[0] ); CHECK_GL_ERROR(); - glVertexPointer( 3, GL_DOUBLE, 0, &Vertices[0] ); + glVertexPointer( 3, GL_FLOAT, 0, &Vertices[0] ); CHECK_GL_ERROR(); glDrawArrays( GL_TRIANGLES, 0, Vertices.size() ); CHECK_GL_ERROR(); |