From 2859ea7e9cc1f7e43402d05c04de271e869ff48e Mon Sep 17 00:00:00 2001 From: Garux Date: Sun, 4 Mar 2018 13:52:34 +0300 Subject: [PATCH] * Valve220: fix uninitialized texture buffer basis --- radiant/surfacedialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radiant/surfacedialog.cpp b/radiant/surfacedialog.cpp index 3d8a799d..86a3e39d 100644 --- a/radiant/surfacedialog.cpp +++ b/radiant/surfacedialog.cpp @@ -1448,6 +1448,8 @@ public: std::size_t m_height; FaceTexture() : m_plane( 0, 0, 1, 0 ), m_width( 64 ), m_height( 64 ) { + m_projection.m_basis_s = Vector3( 0.7071067811865, 0.7071067811865, 0 ); + m_projection.m_basis_t = Vector3( -0.4082482904639, 0.4082482904639, -0.4082482904639 * 2.0 ); } };