Open KelvinShadewing opened 8 months ago
Here's the code for the function:
void setTextureFilter(int tex, int filter) { SDL_ScaleMode sm = (SDL_ScaleMode)min(max(filter, 0), 2); if(tex > 0 && tex < vcTextures.size() && vcTextures[tex] != 0) SDL_SetTextureScaleMode(vcTextures[tex], sm); else xyPrint("WARNING: Texture not found!"); }
From what few examples I can find, I'm using the function SDL_SetTextureScaleMode correctly, but it causes a crash every time.
SDL_SetTextureScaleMode
Here's the code for the function:
From what few examples I can find, I'm using the function
SDL_SetTextureScaleMode
correctly, but it causes a crash every time.