--- deliantra/Deliantra-Client/Client.xs 2006/04/14 02:03:10 1.35 +++ deliantra/Deliantra-Client/Client.xs 2006/04/14 11:32:21 1.36 @@ -401,6 +401,7 @@ double s = SvNV (*hv_fetch (hv, "s", 1, 1)); double t = SvNV (*hv_fetch (hv, "t", 1, 1)); int name = SvIV (*hv_fetch (hv, "name", 4, 1)); + int wrap_mode = SvIV (*hv_fetch (hv, "wrap_mode", 9, 1)); if (items < 5) { @@ -409,6 +410,10 @@ } glBindTexture (GL_TEXTURE_2D, name); + if (wrap_mode) { + glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + } glBegin (GL_QUADS); glTexCoord2d (0, 0); glVertex2d (x , y ); glTexCoord2d (0, t); glVertex2d (x , y + h);