提交 09604c93 编写于 作者: L lana

Merge

此差异已折叠。
...@@ -2905,13 +2905,13 @@ search: ...@@ -2905,13 +2905,13 @@ search:
return comp; return comp;
} }
// if (flavor1.isFlavorTextType()) { if (flavor1.isFlavorTextType()) {
// return 1; return 1;
// } }
//
// if (flavor2.isFlavorTextType()) { if (flavor2.isFlavorTextType()) {
// return -1; return -1;
// } }
// Next, look for application/x-java-* types. Prefer unknown // Next, look for application/x-java-* types. Prefer unknown
// MIME types because if the user provides his own data flavor, // MIME types because if the user provides his own data flavor,
......
...@@ -194,6 +194,10 @@ public class OGLContext extends BufferedContext { ...@@ -194,6 +194,10 @@ public class OGLContext extends BufferedContext {
/** Indicates the presence of the GL_ARB_texture_rectangle extension. */ /** Indicates the presence of the GL_ARB_texture_rectangle extension. */
@Native @Native
static final int CAPS_EXT_TEXRECT = (FIRST_PRIVATE_CAP << 4); static final int CAPS_EXT_TEXRECT = (FIRST_PRIVATE_CAP << 4);
/** Indicates the presence of the GL_NV_texture_barrier extension. */
@Native
static final int CAPS_EXT_TEXBARRIER = (FIRST_PRIVATE_CAP << 5);
OGLContextCaps(int caps, String adapterId) { OGLContextCaps(int caps, String adapterId) {
super(caps, adapterId); super(caps, adapterId);
...@@ -223,6 +227,9 @@ public class OGLContext extends BufferedContext { ...@@ -223,6 +227,9 @@ public class OGLContext extends BufferedContext {
if ((caps & CAPS_EXT_TEXRECT) != 0) { if ((caps & CAPS_EXT_TEXRECT) != 0) {
buf.append("CAPS_EXT_TEXRECT|"); buf.append("CAPS_EXT_TEXRECT|");
} }
if ((caps & CAPS_EXT_TEXBARRIER) != 0) {
buf.append("CAPS_EXT_TEXBARRIER|");
}
return buf.toString(); return buf.toString();
} }
} }
......
...@@ -134,6 +134,8 @@ typedef struct { ...@@ -134,6 +134,8 @@ typedef struct {
sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_GRAD_SHADER sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_GRAD_SHADER
#define CAPS_EXT_TEXRECT \ #define CAPS_EXT_TEXRECT \
sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXRECT sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXRECT
#define CAPS_EXT_TEXBARRIER \
sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_EXT_TEXBARRIER
/** /**
* Evaluates to true if the given capability bitmask is present for the * Evaluates to true if the given capability bitmask is present for the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册