提交 41200efb 编写于 作者: T tdv

6755274: 6u10b33 2d tests fails on sles10x64 with jvm crash

Reviewed-by: campbell
上级 4f039e9c
...@@ -120,12 +120,14 @@ public class GLXGraphicsConfig ...@@ -120,12 +120,14 @@ public class GLXGraphicsConfig
new GLXGetConfigInfo(device.getScreen(), visualnum); new GLXGetConfigInfo(device.getScreen(), visualnum);
rq.flushAndInvokeNow(action); rq.flushAndInvokeNow(action);
cfginfo = action.getConfigInfo(); cfginfo = action.getConfigInfo();
if (cfginfo != 0L) {
OGLContext.setScratchSurface(cfginfo); OGLContext.setScratchSurface(cfginfo);
rq.flushAndInvokeNow(new Runnable() { rq.flushAndInvokeNow(new Runnable() {
public void run() { public void run() {
ids[0] = OGLContext.getOGLIdString(); ids[0] = OGLContext.getOGLIdString();
} }
}); });
}
} finally { } finally {
rq.unlock(); rq.unlock();
} }
......
...@@ -127,12 +127,14 @@ public class WGLGraphicsConfig ...@@ -127,12 +127,14 @@ public class WGLGraphicsConfig
new WGLGetConfigInfo(device.getScreen(), pixfmt); new WGLGetConfigInfo(device.getScreen(), pixfmt);
rq.flushAndInvokeNow(action); rq.flushAndInvokeNow(action);
cfginfo = action.getConfigInfo(); cfginfo = action.getConfigInfo();
if (cfginfo != 0L) {
OGLContext.setScratchSurface(cfginfo); OGLContext.setScratchSurface(cfginfo);
rq.flushAndInvokeNow(new Runnable() { rq.flushAndInvokeNow(new Runnable() {
public void run() { public void run() {
ids[0] = OGLContext.getOGLIdString(); ids[0] = OGLContext.getOGLIdString();
} }
}); });
}
} finally { } finally {
rq.unlock(); rq.unlock();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册