We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: