Sign in to follow this  
Jethro_T

SDL_BlitSurface and OpenGL

Recommended Posts

To my surprise I just found out that you shouldn't call SDL_BlitSurface or any other pixel manipulating functions if you use SDL to create your OpenGL context. I've been doing this for quite some time, when I render text I blit it to a power of two surface after rendering with SDL_TTF, then build a GL texture from it. It seems to be working so what's wrong with doing it? Does anyone have any info on what functions I shouldn't call, or why exactly some SDL functions shouldn't be called?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this