From 0d1729049901e136d57c404164b8f80db7e46d98 Mon Sep 17 00:00:00 2001 From: dpethes Date: Mon, 30 Jan 2017 20:11:55 +0100 Subject: [PATCH] hob viewer: set texture wrap mode to clamp, it seems to be correct --- hob_display/hob_mesh.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hob_display/hob_mesh.pas b/hob_display/hob_mesh.pas index 9270627..e34b68a 100644 --- a/hob_display/hob_mesh.pas +++ b/hob_display/hob_mesh.pas @@ -4,7 +4,7 @@ unit hob_mesh; interface uses - Classes, SysUtils, gl, math, fgl, + Classes, SysUtils, gl, GLext, math, fgl, GenericStructList, hob_parser, hmt_parser; type @@ -266,9 +266,9 @@ procedure TModel.InitGL; glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); - //which mode? - // glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); - // glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); + //clamp seems to be the correct mode + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); end; var