From 4c4b97316ec345c12a8900b7ad5c0def828b50d1 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 2 May 2016 13:02:55 +0300 Subject: [PATCH] Fixed inconsistent texture wrapping Sampler state needs to be reseted when hardware texture resources are released --- src/gl/textures/gl_material.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gl/textures/gl_material.cpp b/src/gl/textures/gl_material.cpp index 5ab7a8242f..74cdcd7252 100644 --- a/src/gl/textures/gl_material.cpp +++ b/src/gl/textures/gl_material.cpp @@ -173,6 +173,8 @@ void FGLTexture::Clean(bool all) delete mHwTexture; mHwTexture = NULL; } + + lastSampler = 253; } }