meiyunyang / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Drawing fix for Demos on Mac OS X #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
summary, drawPolyShape not passing correct size in all cases

problem:

drawSpace.c is passing GL_FLOAT always, on OSX default is double not float.

solution:

in drawSpace.c drawPolyShape:

change 

    glVertexPointer(2, GL_FLOAT, 0, poly->tVerts);

to 

        #if CP_USE_DOUBLES
    glVertexPointer(2, GL_DOUBLE, 0, poly->tVerts);
        #else
        glVertexPointer(2, GL_FLOAT, 0, poly->tVerts);
        #endif

Original issue reported on code.google.com by steven.f...@gmail.com on 16 Mar 2010 at 10:26

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is fixed in trunk now. Forgot to close the case.

Original comment by slemb...@gmail.com on 30 Jul 2010 at 1:24