From 41a6ced92ea927430f748637f21cada5d92ebb27 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 15 Nov 2012 09:35:01 +0100 Subject: [PATCH] user GLfloat instead of float Change-Id: I1af65f9a6046835cd4d390f37ccb0e659016ba1d --- examples/vwebp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/vwebp.c b/examples/vwebp.c index fff2f087..590a064d 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -135,12 +135,12 @@ static void DrawCheckerBoard(void) { static void HandleDisplay(void) { const WebPDecBuffer* const pic = kParams.pic; const WebPIterator* const iter = &kParams.frameiter; - double xoff, yoff; + GLfloat xoff, yoff; if (pic == NULL) return; glPushMatrix(); glPixelZoom(1, -1); - xoff = 2. * iter->x_offset / kParams.canvas_width; - yoff = 2. * iter->y_offset / kParams.canvas_height; + xoff = (GLfloat)(2. * iter->x_offset / kParams.canvas_width); + yoff = (GLfloat)(2. * iter->y_offset / kParams.canvas_height); glRasterPos2f(-1. + xoff, 1. - yoff); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_UNPACK_ROW_LENGTH, pic->u.RGBA.stride / 4);