The fix works only with Gambas 3, no effect in Gambas 2.23.
It would be great to have ability to switch this function on and off, but as 
the impact on performance is at about 1.5 - 2% it can stay switched on 
constantly.




> 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,

----------------------------------------------------------------
Doladuj telefon przez Internet!
Sprawdz >> http://linkint.pl/f29ba

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to