gtkglextmm and glewinit simple question

View: New views
1 Messages — Rating Filter:   Alert me  

gtkglextmm and glewinit simple question

by chire :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.