src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
void
OGLSD_DestroyOGLSurface(JNIEnv *env, OGLSDOps *oglsdo)
{
    WGLSDOps *wglsdo = (WGLSDOps *)oglsdo->privOps;

    J2dTraceLn(J2D_TRACE_INFO, "OGLSD_DestroyOGLSurface");

    if (oglsdo->drawableType == OGLSD_PBUFFER) {
        if (wglsdo->pbuffer != 0) {
            if (wglsdo->pbufferDC != 0) {
                j2d_wglReleasePbufferDCARB(wglsdo->pbuffer,
                                           wglsdo->pbufferDC);
                wglsdo->pbufferDC = 0;
            }
            j2d_wglDestroyPbufferARB(wglsdo->pbuffer);
            wglsdo->pbuffer = 0;
        }
    }
}
/**
 * This function disposes of any native windowing system resources associated
 * with this surface.  For instance, if the given OGLSDOps is of type
 * OGLSD_PBUFFER, this method implementation will destroy the actual pbuffer
 * surface.
 */
This function disposes of any native windowing system resources associated
with this surface.  For instance, if the given OGLSDOps is of type
OGLSD_PBUFFER, this method implementation will destroy the actual pbuffer
surface.
This function disposes of any native windowing system resources associated with this surface . For instance if the given OGLSDOps is of type OGLSD_PBUFFER this method implementation will destroy the actual pbuffer surface .
void
OGLSD_DestroyOGLSurface(JNIEnv *env, OGLSDOps *oglsdo)
{
    WGLSDOps *wglsdo = (WGLSDOps *)oglsdo->privOps;
    J2dTraceLn(J2D_TRACE_INFO, "OGLSD_DestroyOGLSurface");
    if (oglsdo->drawableType == OGLSD_PBUFFER) {
        if (wglsdo->pbuffer != 0) {
            if (wglsdo->pbufferDC != 0) {
                j2d_wglReleasePbufferDCARB(wglsdo->pbuffer,
                                           wglsdo->pbufferDC);
                wglsdo->pbufferDC = 0;
            }
            j2d_wglDestroyPbufferARB(wglsdo->pbuffer);
            wglsdo->pbuffer = 0;
        }
    }
}
void OGLSD_DestroyOGLSurface ( JNIEnv * env , OGLSDOps * oglsdo ) { WGLSDOps * wglsdo = ( WGLSDOps * ) oglsdo -> privOps ; J2dTraceLn ( J2D_TRACE_INFO , " " ) ; if ( oglsdo -> drawableType == OGLSD_PBUFFER ) { if ( wglsdo -> pbuffer != 0 ) { if ( wglsdo -> pbufferDC != 0 ) { j2d_wglReleasePbufferDCARB ( wglsdo -> pbuffer , wglsdo -> pbufferDC ) ; wglsdo -> pbufferDC = 0 ; } j2d_wglDestroyPbufferARB ( wglsdo -> pbuffer ) ; wglsdo -> pbuffer = 0 ; } } }
This function disposes of any native windowing system resources associated
 with this surface.
This function disposes of any native windowing system resources associated with this surface .