diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-03-24 15:39:59 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-03-24 15:39:59 +0000 |
commit | e511f40795c3d0f72a502779b74134fe19cdc5dd (patch) | |
tree | f1456fbc7c9de22b3bb90f3a0a2f8e652773dc21 | |
parent | a53f53ece3a00e77d448f04410762ced4080fc72 (diff) |
Set UNPACK_ROW_LENGTH to properly display bitmap fonts.
-rw-r--r-- | src/glut/mini/bitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glut/mini/bitmap.c b/src/glut/mini/bitmap.c index e756171391..55a031af0a 100644 --- a/src/glut/mini/bitmap.c +++ b/src/glut/mini/bitmap.c @@ -32,7 +32,7 @@ glutBitmapCharacter(GLUTbitmapFont font, int c) /* glGetFloatv(GL_UNPACK_ROW_LENGTH, &rowlength); */ /* glGetFloatv(GL_UNPACK_SKIP_ROWS, &skiprows); */ /* glGetFloatv(GL_UNPACK_SKIP_PIXELS, &skippixels); */ -/* glGetFloatv(GL_UNPACK_ALIGNMENT, &alignment); */ + glGetFloatv(GL_UNPACK_ALIGNMENT, &alignment); /* Little endian machines (DEC Alpha for example) could benefit from setting GL_UNPACK_LSB_FIRST to GL_TRUE instead of GL_FALSE, but this would require changing the @@ -42,7 +42,7 @@ glutBitmapCharacter(GLUTbitmapFont font, int c) /* glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); */ /* glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); */ /* glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); */ -/* glPixelStorei(GL_UNPACK_ALIGNMENT, 1); */ + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glBitmap(ch->width, ch->height, ch->xorig, ch->yorig, ch->advance, 0, ch->bitmap); /* Restore saved modes. */ @@ -51,6 +51,6 @@ glutBitmapCharacter(GLUTbitmapFont font, int c) /* glPixelStorei(GL_UNPACK_ROW_LENGTH, (int)rowlength); */ /* glPixelStorei(GL_UNPACK_SKIP_ROWS, skiprows); */ /* glPixelStorei(GL_UNPACK_SKIP_PIXELS, skippixels); */ -/* glPixelStorei(GL_UNPACK_ALIGNMENT, alignment); */ + glPixelStorei(GL_UNPACK_ALIGNMENT, (int)alignment); } } |