equal
deleted
inserted
replaced
302 * Compiles and links the LCD text shader program. If successful, this |
302 * Compiles and links the LCD text shader program. If successful, this |
303 * function returns a handle to the newly created shader program; otherwise |
303 * function returns a handle to the newly created shader program; otherwise |
304 * returns 0. |
304 * returns 0. |
305 */ |
305 */ |
306 static GLhandleARB |
306 static GLhandleARB |
307 OGLTR_CreateLCDTextProgram() |
307 OGLTR_CreateLCDTextProgram(void) |
308 { |
308 { |
309 GLhandleARB lcdTextProgram; |
309 GLhandleARB lcdTextProgram; |
310 GLint loc; |
310 GLint loc; |
311 |
311 |
312 J2dTraceLn(J2D_TRACE_INFO, "OGLTR_CreateLCDTextProgram"); |
312 J2dTraceLn(J2D_TRACE_INFO, "OGLTR_CreateLCDTextProgram"); |
506 |
506 |
507 /** |
507 /** |
508 * Disables any pending state associated with the current "glyph mode". |
508 * Disables any pending state associated with the current "glyph mode". |
509 */ |
509 */ |
510 static void |
510 static void |
511 OGLTR_DisableGlyphModeState() |
511 OGLTR_DisableGlyphModeState(void) |
512 { |
512 { |
513 switch (glyphMode) { |
513 switch (glyphMode) { |
514 case MODE_NO_CACHE_LCD: |
514 case MODE_NO_CACHE_LCD: |
515 j2d_glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); |
515 j2d_glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); |
516 j2d_glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); |
516 j2d_glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); |