fix conversion of GLfloat display list IDs
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 20:59:34 +0000 (14:59 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 20:59:34 +0000 (14:59 -0600)
commit6e19f82c37191dabcdd882d0edac98a2ca9c11e4
tree3ff9fff45cfc55b1bc4419cc842a043e0d53f688
parent5f0fa82f68e3f4f7086ed6cf5616ef94820e19ee
fix conversion of GLfloat display list IDs

Use floor() to convert to int (per Mark Kildard and the SI).
Also, change translate_id() to return a signed integer since we may be
offsetting from GL_LIST_BASE.
src/mesa/main/dlist.c