changeset 4895:8b9ed2be92ac

Fix for rt-32583 - major rendering artifacts on BouncingBalls on eglfb path.
author Lisa Selle<lisa.selle@oracle.com>
date Fri, 30 Aug 2013 12:22:07 -0400
parents eb5c0efd242d
children bf594c19a7a6
files modules/graphics/src/main/java/com/sun/prism/es2/GLContext.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/es2/GLContext.java	Fri Aug 30 13:56:14 2013 +0400
+++ b/modules/graphics/src/main/java/com/sun/prism/es2/GLContext.java	Fri Aug 30 12:22:07 2013 -0400
@@ -335,6 +335,9 @@
      * @return FBO id
      */
     int createFBO(int texID) {
+        if (nativeFBOID != FBO_ID_NOCACHE) {
+            nativeFBOID = FBO_ID_UNSET; // invalidate FBO ID cache
+        } 
         return nCreateFBO(nativeCtxInfo, texID);
     }