[GtkGLExt] gtkglextmm and glewinit simple question



i have this very simple problem, yet i havent found any solution.

i got this code:
[code]
int main(int argc, char **argv){
    GLenum initStatus = glewInit();
    if( initStatus != GLEW_OK ){
         printf( "*GLEW Cannot Init\n");
    }
    if( GLEW_ARB_vertex_buffer_object == NULL ){
         printf( "*GLEW_ARB_vertex_buffer_object = NULL\n");
    }
    Gtk::Main m(argc, argv);

    // Init gtkglextmm.
    Gtk::GL::init(argc, argv);

    // Query OpenGL extension version.
    int major, minor;
    Gdk::GL::query_version(major, minor);
    std::cout << "OpenGL extension version - "<< major << "." << minor <<
std::endl;
    GUIVentanaPrincipal gui;
    m.run(gui);

    return 0;
}
[/code]

but glewinit fails to initialize
this is my output
[code]
*GLEW Cannot Init
*GLEW_ARB_vertex_buffer_object = NULL
OpenGL extension version - 1.4
[/code]

why this happens when using gtkglextmm and glew?, it only happens on this
project im working.
-- 
View this message in context: http://www.nabble.com/gtkglextmm-and-glewinit-simple-question-tp25455459p25455459.html
Sent from the Gnome - GtkGLExt mailing list archive at Nabble.com.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]