Commit 5d99c2f2 authored by Nicolas.Rougier's avatar Nicolas.Rougier

Fixed gamma demo

parent 0927c39a
......@@ -66,3 +66,4 @@ Contributors:
* Christian Forfang (Code review, fix & patch for 3.2 core profile)
* Lukas Murmann (Code review & fix for 3.2 core profile)
* Jérémie Roy (Code review, fix and new ideas)
* dsewtz (Bug report & fix)
......@@ -157,7 +157,10 @@ int main( int argc, char **argv )
markup.font = 0;
size_t i;
vec2 pen = {{32, 508}};
vec2 pen;
pen.x = 32;
pen.y = 508;
wchar_t *text = L"A Quick Brown Fox Jumps Over The Lazy Dog 0123456789\n";
for( i=0; i < 14; ++i )
{
......
......@@ -231,11 +231,11 @@ vertex_buffer_print( vertex_buffer_t * self )
case GL_FLOAT: j=7; break;
default: j=8; break;
}
fprintf(stderr, "%s : %dx%s (+%ld)\n",
fprintf(stderr, "%s : %dx%s (+%p)\n",
self->attributes[i]->name,
self->attributes[i]->size,
gltypes[j],
(long) self->attributes[i]->pointer);
self->attributes[i]->pointer);
i += 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment