Make video display blurred instead of blocky.

master
cybersphinx 2011-05-02 22:02:25 +02:00
parent 2e5b58d213
commit 730371881c
1 changed files with 3 additions and 1 deletions

View File

@ -310,6 +310,8 @@ static void video_write(bool update)
glErrors();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, video_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
if (update)
{
@ -697,7 +699,7 @@ bool seq_Play(const char* filename)
0, GL_RGBA, GL_UNSIGNED_BYTE, blackframe);
free(blackframe);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
}