提交 23caf375 编写于 作者: B bae

6975884: sun/java2d/SunGraphics2D/DrawImageBilinear.java failed

Reviewed-by: prr
上级 d248a6dc
......@@ -104,7 +104,9 @@ public class DrawImageBilinear extends Canvas {
// second time will be a texture->surface blit
g2d.drawImage(bimg2, 80, 10, 40, 40, null);
g2d.drawImage(bimg2, 80, 10, 40, 40, null);
if (!skipOglTextureTest) {
g2d.drawImage(bimg2, 80, 10, 40, 40, null);
}
// third time will be a pbuffer->surface blit
if (vimg.validate(getGraphicsConfiguration()) != VolatileImage.IMAGE_OK) {
......@@ -150,6 +152,8 @@ public class DrawImageBilinear extends Canvas {
}
}
private static boolean skipOglTextureTest = false;
public static void main(String[] args) {
boolean show = false;
for (String arg : args) {
......@@ -158,6 +162,11 @@ public class DrawImageBilinear extends Canvas {
}
}
String arch = System.getProperty("os.arch");
boolean isOglEnabled = Boolean.getBoolean("sun.java2d.opengl");
skipOglTextureTest = isOglEnabled && ("sparc".equals(arch));
System.out.println("Skip OpenGL texture test: " + skipOglTextureTest);
DrawImageBilinear test = new DrawImageBilinear();
Frame frame = new Frame();
frame.add(test);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册