OpenJDK / macosx-port / macosx-port / jdk
changeset 4715:50b8fef5df7d
Fixing AWT components painted over in white
author | kevin_m_miller@apple.com |
---|---|
date | Fri, 09 Sep 2011 15:22:03 -0700 |
parents | 615f0f426319 |
children | 49ef6e5e835f |
files | src/share/native/sun/java2d/opengl/OGLSurfaceData.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/native/sun/java2d/opengl/OGLSurfaceData.c Thu Sep 08 17:11:24 2011 -0700 +++ b/src/share/native/sun/java2d/opengl/OGLSurfaceData.c Fri Sep 09 15:22:03 2011 -0700 @@ -137,7 +137,8 @@ jint width, jint height) { GLenum texTarget, texProxyTarget; - GLint format = isOpaque ? GL_RGB : GL_RGBA; + GLint format = GL_RGBA; + GLint size = GL_UNSIGNED_INT_8_8_8_8; GLuint texID; GLsizei texWidth, texHeight, realWidth, realHeight; GLint texMax; @@ -191,7 +192,7 @@ // the calculated power-of-two dimensions and the given internal format j2d_glTexImage2D(texProxyTarget, 0, format, texWidth, texHeight, 0, - format, GL_UNSIGNED_BYTE, NULL); + format, size, NULL); j2d_glGetTexLevelParameteriv(texProxyTarget, 0, GL_TEXTURE_WIDTH, &realWidth); j2d_glGetTexLevelParameteriv(texProxyTarget, 0, @@ -213,7 +214,7 @@ j2d_glBindTexture(texTarget, texID); j2d_glTexImage2D(texTarget, 0, format, texWidth, texHeight, 0, - format, GL_UNSIGNED_INT_8_8_8_8, NULL); + format, size, NULL); oglsdo->isOpaque = isOpaque; oglsdo->xOffset = 0;