< prev index next >

src/java.desktop/macosx/classes/sun/java2d/OSXSurfaceData.java

Print this page

        

@@ -598,13 +598,12 @@
                 this.fGraphicsStatesInt.put(kColorHeightIndex, texturePaintImage.getHeight());
                 this.fGraphicsStatesFloat.put(kColortxIndex, (float) userBounds.getX());
                 this.fGraphicsStatesFloat.put(kColortyIndex, (float) userBounds.getY());
                 this.fGraphicsStatesFloat.put(kColorsxIndex, 1.0f);
                 this.fGraphicsStatesFloat.put(kColorsyIndex, 1.0f);
-                this.fGraphicsStatesObject[kTextureImageIndex] = sun.awt.image.BufImgSurfaceData.createData(texturePaintImage);
+                this.fGraphicsStatesObject[kTextureImageIndex] = OSXOffScreenSurfaceData.createNewSurface(texturePaintImage);
 
-                context.dispose();
 
                 this.fChangeFlag = (this.fChangeFlag | kColorChangedBit);
             } else {
                 this.fChangeFlag = (this.fChangeFlag & kColorNotChangedBit);
             }
< prev index next >