Bugzilla – Attachment 624 Details for
Bug 1052
Wrong GLProfile mapping: GL4ES3 -> GL3, allowed are only [GL4bc, GL4 and GLES3]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
GL4ES3bug.java
GL4ES3bug.java (text/x-java), 1.68 KB, created by
Xerxes Rånby
on 2014-08-24 23:40:31 CEST
(
hide
)
Description:
GL4ES3bug.java
Filename:
MIME Type:
Creator:
Xerxes Rånby
Created:
2014-08-24 23:40:31 CEST
Size:
1.68 KB
patch
obsolete
>import java.io.IOException; > >import javax.media.opengl.GLCapabilities; >import javax.media.opengl.GLProfile; >import com.jogamp.newt.opengl.GLWindow; > >import javax.media.opengl.GLEventListener; >import javax.media.opengl.GLAutoDrawable; >import com.jogamp.opengl.util.Animator; > >import com.jogamp.newt.event.WindowAdapter; >import com.jogamp.newt.event.WindowEvent; > > >public class GL4ES3bug implements GLEventListener{ > > @Override > public void init(GLAutoDrawable drawable) { > } > > @Override > public void display(GLAutoDrawable drawable) { > } > > @Override > public void dispose(GLAutoDrawable drawable) { > } > > @Override > public void reshape(GLAutoDrawable drawable, int x, int y, int width, > int height) { > } > public static void main(String args[]){ > final GLProfile glp = GLProfile.get(GLProfile.GL4ES3); > final GLCapabilities caps = new GLCapabilities(glp); > caps.setSampleBuffers(true); > caps.setNumSamples(4); > final GLWindow glWindow = GLWindow.create(caps); > > > final Animator animator = new Animator(glWindow); > animator.setUpdateFPSFrames(1, null); > > glWindow.addWindowListener(new WindowAdapter() { > @Override > public void windowDestroyNotify(WindowEvent arg0) { > new Thread() { > @Override > public void run() { > if (animator.isStarted()) > animator.stop(); > System.exit(0); > } > }.start(); > } > }); > > glWindow.addGLEventListener(new TextRendering()); > glWindow.setSize(800, 400); > glWindow.setVisible(true); > > } >}
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 1052
: 624 |
625
|
626