Hi, this is my first post. I wasn’t sure if this was the appropriate place or SDL development.
I have one image.png that I load using SDL_IMG. I load by creating a surface. Then I create a texture using CreateTextureFromSurface() and I free the original surface. I repeat the same process but now at the end I use SetColorMod(128, 128, 0) to this new texture. This changes the color of the image as I wanted! Cool!
This whole process is done way before the images are rendered to the screen. The original texture (without the color change) is rendered normally. The texture with the color change creates a mini delay when rendered for the first time. After that it keeps rendering without any delay.
Has anyone experienced this or have any idea on what is going on? I’m using SDL 2.0.2 (I’m using ubuntu 14.04)