Disable bilinear filtering for frame images.

This commit is contained in:
Bartosz Taudul 2019-07-19 00:51:42 +02:00
parent dc992266fd
commit 1c0c5f5282

View File

@ -14,8 +14,8 @@ void* MakeTexture()
GLuint tex;
glGenTextures( 1, &tex );
glBindTexture( GL_TEXTURE_2D, tex );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
return (void*)(intptr_t)tex;
}