jdk/src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
changeset 5938 c93e51904f68
parent 5506 202f599c92aa
child 7668 d4a77089c587
equal deleted inserted replaced
5937:6562557739c0 5938:c93e51904f68
    64                                                        sizeof(OGLSDOps));
    64                                                        sizeof(OGLSDOps));
    65     WGLSDOps *wglsdo = (WGLSDOps *)malloc(sizeof(WGLSDOps));
    65     WGLSDOps *wglsdo = (WGLSDOps *)malloc(sizeof(WGLSDOps));
    66 
    66 
    67     J2dTraceLn(J2D_TRACE_INFO, "WGLSurfaceData_initOps");
    67     J2dTraceLn(J2D_TRACE_INFO, "WGLSurfaceData_initOps");
    68 
    68 
       
    69     if (oglsdo == NULL) {
       
    70         JNU_ThrowOutOfMemoryError(env, "Initialization of SurfaceData failed.");
       
    71         return;
       
    72     }
    69     if (wglsdo == NULL) {
    73     if (wglsdo == NULL) {
    70         JNU_ThrowOutOfMemoryError(env, "creating native wgl ops");
    74         JNU_ThrowOutOfMemoryError(env, "creating native wgl ops");
    71         return;
    75         return;
    72     }
    76     }
    73 
    77