From 63550ae9edefffece9b4b50cdb47353b5d9ee534 Mon Sep 17 00:00:00 2001 From: Peter LaValle Date: Tue, 14 Apr 2015 13:03:05 +0100 Subject: [PATCH] Update stb_truetype.h trivial typo --- stb_truetype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_truetype.h b/stb_truetype.h index 26aba20..011c077 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -239,7 +239,7 @@ GLuint ftex; void my_stbtt_initfont(void) { fread(ttf_buffer, 1, 1<<20, fopen("c:/windows/fonts/times.ttf", "rb")); - stbtt_BakeFontBitmap(data,0, 32.0, temp_bitmap,512,512, 32,96, cdata); // no guarantee this fits! + stbtt_BakeFontBitmap(ttf_buffer,0, 32.0, temp_bitmap,512,512, 32,96, cdata); // no guarantee this fits! // can free ttf_buffer at this point glGenTextures(1, &ftex); glBindTexture(GL_TEXTURE_2D, ftex);