2
0
mirror of https://github.com/dpethes/rerogue.git synced 2025-06-07 18:58:32 +02:00

hob viewer: set texture wrap mode to clamp, it seems to be correct

This commit is contained in:
dpethes 2017-01-30 20:11:55 +01:00
parent f9f6985a21
commit 0d17290499

View File

@ -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