X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56cfd0d766b3240ef34157eb1669ffd9e2a86b9b..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/opengl/penguin/lw.cpp?ds=sidebyside diff --git a/samples/opengl/penguin/lw.cpp b/samples/opengl/penguin/lw.cpp index aaa1d889c2..487359bbba 100644 --- a/samples/opengl/penguin/lw.cpp +++ b/samples/opengl/penguin/lw.cpp @@ -128,9 +128,9 @@ static void read_srfs(FILE *f, int nbytes, lwObject *lwo) nbytes -= read_string(f,material->name); /* defaults */ - material->r = 0.7; - material->g = 0.7; - material->b = 0.7; + material->r = 0.7f; + material->g = 0.7f; + material->b = 0.7f; } lwo->material = (lwMaterial*) realloc(lwo->material, sizeof(lwMaterial)*lwo->material_cnt); }