equal
deleted
inserted
replaced
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 |