src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
static jboolean
WGLSD_MakeCurrentToScratch(JNIEnv *env, OGLContext *oglc)
{
    WGLCtxInfo *ctxInfo;

    J2dTraceLn(J2D_TRACE_INFO, "WGLSD_MakeCurrentToScratch");

    if (oglc == NULL) {
        J2dRlsTraceLn(J2D_TRACE_ERROR,
                      "WGLSD_MakeCurrentToScratch: context is null");
        return JNI_FALSE;
    }

    ctxInfo = (WGLCtxInfo *)oglc->ctxInfo;
    if (!j2d_wglMakeCurrent(ctxInfo->scratchSurfaceDC, ctxInfo->context)) {
        J2dRlsTraceLn(J2D_TRACE_ERROR,
                      "WGLSD_MakeCurrentToScratch: could not make current");
        return JNI_FALSE;
    }

    return JNI_TRUE;
}
/**
 * Makes the given context current to its associated "scratch" surface.  If
 * the operation is successful, this method will return JNI_TRUE; otherwise,
 * returns JNI_FALSE.
 */
Makes the given context current to its associated "scratch" surface.  If
the operation is successful, this method will return JNI_TRUE; otherwise,
returns JNI_FALSE.
Makes the given context current to its associated " scratch " surface . If the operation is successful this method will return JNI_TRUE ; otherwise returns JNI_FALSE .
static jboolean
WGLSD_MakeCurrentToScratch(JNIEnv *env, OGLContext *oglc)
{
    WGLCtxInfo *ctxInfo;
    J2dTraceLn(J2D_TRACE_INFO, "WGLSD_MakeCurrentToScratch");
    if (oglc == NULL) {
        J2dRlsTraceLn(J2D_TRACE_ERROR,
                      "WGLSD_MakeCurrentToScratch: context is null");
        return JNI_FALSE;
    }
    ctxInfo = (WGLCtxInfo *)oglc->ctxInfo;
    if (!j2d_wglMakeCurrent(ctxInfo->scratchSurfaceDC, ctxInfo->context)) {
        J2dRlsTraceLn(J2D_TRACE_ERROR,
                      "WGLSD_MakeCurrentToScratch: could not make current");
        return JNI_FALSE;
    }
    return JNI_TRUE;
}
static jboolean WGLSD_MakeCurrentToScratch ( JNIEnv * env , OGLContext * oglc ) { WGLCtxInfo * ctxInfo ; J2dTraceLn ( J2D_TRACE_INFO , " " ) ; if ( oglc == NULL ) { J2dRlsTraceLn ( J2D_TRACE_ERROR , " " ) ; return JNI_FALSE ; } ctxInfo = ( WGLCtxInfo * ) oglc -> ctxInfo ; if ( ! j2d_wglMakeCurrent ( ctxInfo -> scratchSurfaceDC , ctxInfo -> context ) ) { J2dRlsTraceLn ( J2D_TRACE_ERROR , " " ) ; return JNI_FALSE ; } return JNI_TRUE ; }
Makes the given context current to its associated "scratch" surface.
Makes the given context current to its associated " scratch " surface .