src/java.desktop/share/native/common/java2d/opengl/OGLVertexCache.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
    95 
    95 
    96     return JNI_TRUE;
    96     return JNI_TRUE;
    97 }
    97 }
    98 
    98 
    99 void
    99 void
   100 OGLVertexCache_FlushVertexCache()
   100 OGLVertexCache_FlushVertexCache(void)
   101 {
   101 {
   102     J2dTraceLn(J2D_TRACE_INFO, "OGLVertexCache_FlushVertexCache");
   102     J2dTraceLn(J2D_TRACE_INFO, "OGLVertexCache_FlushVertexCache");
   103 
   103 
   104     if (vertexCacheIndex > 0) {
   104     if (vertexCacheIndex > 0) {
   105         j2d_glDrawArrays(GL_QUADS, 0, vertexCacheIndex);
   105         j2d_glDrawArrays(GL_QUADS, 0, vertexCacheIndex);
   145         OGLPaints_SetColor(oglc, oglc->pixel);
   145         OGLPaints_SetColor(oglc, oglc->pixel);
   146     }
   146     }
   147 }
   147 }
   148 
   148 
   149 static jboolean
   149 static jboolean
   150 OGLVertexCache_InitMaskCache()
   150 OGLVertexCache_InitMaskCache(void)
   151 {
   151 {
   152     J2dTraceLn(J2D_TRACE_INFO, "OGLVertexCache_InitMaskCache");
   152     J2dTraceLn(J2D_TRACE_INFO, "OGLVertexCache_InitMaskCache");
   153 
   153 
   154     maskCacheTexID =
   154     maskCacheTexID =
   155         OGLContext_CreateBlitTexture(GL_INTENSITY8, GL_LUMINANCE,
   155         OGLContext_CreateBlitTexture(GL_INTENSITY8, GL_LUMINANCE,