[Gambas-user] OpenGL quaestion.

Laurent Carlier lordheavym at ...626...
Sun Jun 12 21:55:21 CEST 2011


Le Sunday 12 June 2011 21:50:10, Tomek a écrit :
> I found the solution to my problem with stencil clipping by adding a line to
> sdlwindow.cpp file and recompiling Gambas3.
> 
> void SDLwindow::Show()
> {
> 	Uint32 myFlags = (SDL_ASYNCBLIT | SDL_DOUBLEBUF | SDL_OPENGL);
> 	SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
> 	SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 8 );   <------------- This line
> fixed the problem !
> 
> And my project is properly working now.
> 
> I've ported around 20 OpenGl tutorials already and you can find them on
> gambasforum.com.
> 

Thanks, i will push your fix in the repo

Regards,





More information about the User mailing list