fixed gl_draw_shape to work correctly with blocks