Bugzilla – Attachment 763 Details for
Bug 1259
NativeWindowException on attempting to destroy a drawable with a current context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug case
CreateUnsharedContext0.java (text/x-java), 951 bytes, created by
Mark Raynsford
on 2015-10-30 16:59:21 CET
(
hide
)
Description:
Bug case
Filename:
MIME Type:
Creator:
Mark Raynsford
Created:
2015-10-30 16:59:21 CET
Size:
951 bytes
patch
obsolete
>package com.io7m.scontext; > >import com.jogamp.opengl.GLCapabilities; >import com.jogamp.opengl.GLContext; >import com.jogamp.opengl.GLDrawableFactory; >import com.jogamp.opengl.GLOffscreenAutoDrawable; >import com.jogamp.opengl.GLProfile; > >public final class CreateUnsharedContext0 { > public static void main(String[] args) > { > final GLProfile profile = GLProfile.get(GLProfile.GL3); > final GLCapabilities cap = new GLCapabilities(profile); > cap.setFBO(true); > final GLDrawableFactory f = GLDrawableFactory.getFactory(profile); > final GLOffscreenAutoDrawable drawable = > f.createOffscreenAutoDrawable(null, cap, null, 640, 480); > drawable.display(); > > final GLContext c = drawable.getContext(); > final int r = c.makeCurrent(); > if (r == GLContext.CONTEXT_NOT_CURRENT) { > throw new AssertionError("Could not make context current"); > } > > drawable.destroy(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1259
: 763