Browse Source

Fixing bugs

Panagiotis Christopoulos Charitos 10 years ago
parent
commit
3333976c60
2 changed files with 4 additions and 2 deletions
  1. 2 2
      shaders/Common.glsl
  2. 2 0
      src/renderer/Dbg.cpp

+ 2 - 2
shaders/Common.glsl

@@ -32,7 +32,7 @@ precision DEFAULT_FLOAT_PRECISION int;
 #define TEXTURE_COORDINATE_LOCATION 1
 #define TEXTURE_COORDINATE_LOCATION 1
 #define NORMAL_LOCATION 2
 #define NORMAL_LOCATION 2
 #define TANGENT_LOCATION 3
 #define TANGENT_LOCATION 3
-#define SCALE_LOCATION 6
-#define ALPHA_LOCATION 7
+#define SCALE_LOCATION 1
+#define ALPHA_LOCATION 2
 
 
 #endif
 #endif

+ 2 - 0
src/renderer/Dbg.cpp

@@ -45,6 +45,8 @@ Error Dbg::init(const ConfigSet& initializer)
 	FramebufferPtr::Initializer fbInit;
 	FramebufferPtr::Initializer fbInit;
 	fbInit.m_colorAttachmentsCount = 1;
 	fbInit.m_colorAttachmentsCount = 1;
 	fbInit.m_depthStencilAttachment.m_texture = m_r->getMs().getDepthRt();
 	fbInit.m_depthStencilAttachment.m_texture = m_r->getMs().getDepthRt();
+	fbInit.m_depthStencilAttachment.m_loadOperation =
+		AttachmentLoadOperation::LOAD;
 	if(m_r->getPps().getEnabled())
 	if(m_r->getPps().getEnabled())
 	{
 	{
 		fbInit.m_colorAttachments[0].m_texture = m_r->getPps().getRt();
 		fbInit.m_colorAttachments[0].m_texture = m_r->getPps().getRt();