Henri Verbeet : wined3d: Set texture filtering to NEAREST in check_fbo_compat().

Alexandre Julliard julliard at winehq.org
Fri Jun 5 08:56:54 CDT 2009


Module: wine
Branch: master
Commit: b93c3b3253f3fcd3b770408c88f9bd57664c3ee6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b93c3b3253f3fcd3b770408c88f9bd57664c3ee6

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Jun  5 10:10:47 2009 +0200

wined3d: Set texture filtering to NEAREST in check_fbo_compat().

---

 dlls/wined3d/utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 167ba71..d4eed06 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -512,6 +512,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form
     glGenTextures(1, &tex);
     glBindTexture(GL_TEXTURE_2D, tex);
     glTexImage2D(GL_TEXTURE_2D, 0, internal_format, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
 
     GL_EXTCALL(glGenFramebuffersEXT(1, &fb));
     GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb));




More information about the wine-cvs mailing list