Shader + ligth in raspberry pi

Hello,

I am trying to use shader and light on my app.

If I create the window (on main.cpp) like

indent preformatted text by 4 spacesofGLESWindowSettings settings;
indent preformatted text by 4 spacessettings.setGLESVersion(2);
indent preformatted text by 4 spacessettings.width = 1024;
indent preformatted text by 4 spacessettings.height = 768;
indent preformatted text by 4 spacessettings.windowMode = OF_FULLSCREEN;
indent preformatted text by 4 spacesofCreateWindow(settings);

The shader works, but lighting does not

If I use indent preformatted text by 4 spacesofSetupOpenGL(1024,700,OF_WINDOW);
Lighting works but shader does not.

Is this a problem with GLEsVersion 2? How can i resolve it?

how are you using lights? you need to use a material if you want lighting to have any effect with the programmable renderer

Arturo,

Thank you for answering.

I am usgin ofLight and ofMaterial. And I am creating the window with ofCreateWindow(settings);

Now, when I do material.begin(); my app get stuck… this is strange… since on my laptop works, but does not work on my pi

Is something I am missing?