modules/graphics/src/main/java/com/sun/prism/es2/ES2SwapChain.java

Print this page

        

*** 177,186 **** --- 177,190 ---- context.makeCurrent(null); return presented; } public ES2Graphics createGraphics() { + if (drawable.getNativeWindow() != pState.getNativeWindow()) { + drawable = ES2Pipeline.glFactory.createGLDrawable( + pState.getNativeWindow(), context.getPixelFormat()); + } context.makeCurrent(drawable); nativeDestHandle = pState.getNativeFrameBuffer(); if (nativeDestHandle == 0) { GLContext glContext = context.getGLContext();