Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Missing functions on Linux Amd64  (Read 901 times)
0 Members and 1 Guest are viewing this topic.
Offline giles7777

Senior Newbie

Java games rock!

« Posted 2007-01-10 23:40:22 »

My calls to glGenBuffers are failing on an Amd 64 Linux box.   I check the function with gl.isFunctionAvailable which returns true, but then it dies on the actual call.  It runs fine on a windows and mac box.

JOGL 1.1.0-rc1
ATI Radeon X800 XT, GL_VERSION 2.0.6234
has GL_ARB_Vertex_buffer_object

Test code showing the issue.

import java.awt.*;
import java.awt.event.*;

import com.sun.opengl.util.*;

public class Tester implements GLEventListener  {
  public static void main(String[] args) {
    Frame frame = new Frame("Gear Demo");
    GLCanvas canvas = new GLCanvas();

    canvas.addGLEventListener(new Tester());
    frame.setSize(300, 300);;

  public void init(GLAutoDrawable drawable) {
    // Use debug pipeline
    // drawable.setGL(new DebugGL(drawable.getGL()));

    GL gl = drawable.getGL();

    System.err.println("INIT GL IS: " + gl.getClass().getName());

    System.err.println("Chosen GLCapabilities: " + drawable.getChosenGLCapabilities());

    boolean funcAvailable = gl.isFunctionAvailable("glGenBuffers");

    System.out.println("function: " + funcAvailable);
    if (funcAvailable) {
        // Seems on some systems this still fails on the glGenBuffers call, so check
        try {
            int[] vbo_id_tmp = new int[1];
            gl.glGenBuffers(1, vbo_id_tmp, 0);

        } catch(Exception e) {
            System.out.println("VBO's reported but not really available");


  public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
    GL gl = drawable.getGL();

    float h = (float)height / (float)width;


    System.err.println("GL_VENDOR: " + gl.glGetString(GL.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glTranslatef(0.0f, 0.0f, -40.0f);

  public void display(GLAutoDrawable drawable) {

  public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
Offline Ken Russell

JGO Coder

Java games rock!

« Reply #1 - Posted 2007-01-11 00:56:30 »

Somebody recently reported that JOGL's "DRI hack" class isn't working properly with ATI's proprietary drivers. We're looking into this and hope to have a workaround sometime next week. For now please try checking out and building the JOGL source tree, and in the class, just before the "if (driHackNeeded)" line, set "driHackNeeded = false;". Does that help?
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

numerical (168 views)
2017-02-21 07:32:16

numerical (168 views)
2017-02-21 07:31:46

theagentd (275 views)
2017-02-18 13:42:33

theagentd (276 views)
2017-02-18 13:35:16

h.pernpeintner (1443 views)
2017-01-24 22:39:11

h.pernpeintner (1428 views)
2017-01-24 22:38:32

Galdo (1991 views)
2017-01-12 13:44:09

Archive (2043 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2580 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2331 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!