mesa: fix fallthrough in glformats
[mesa.git] / src / mesa / state_tracker / st_glsl_to_tgsi_private.cpp
index dabb0362a772414b076d9ec3595bf81e67f66d89..f259442cc37c033e52696a6f45ba0ed318aa1db8 100644 (file)
@@ -24,9 +24,9 @@
  */
 
 #include "st_glsl_to_tgsi_private.h"
-#include <tgsi/tgsi_info.h>
-#include <mesa/program/prog_instruction.h>
-#include <mesa/program/prog_print.h>
+#include "tgsi/tgsi_info.h"
+#include "mesa/program/prog_instruction.h"
+#include "mesa/program/prog_print.h"
 
 static int swizzle_for_type(const glsl_type *type, int component = 0)
 {
@@ -116,7 +116,7 @@ st_src_reg::st_src_reg(gl_register_file file, int index, enum glsl_base_type typ
    this->is_double_vertex_input = false;
 }
 
-st_src_reg::st_src_reg()
+void st_src_reg::reset()
 {
    this->type = GLSL_TYPE_ERROR;
    this->file = PROGRAM_UNDEFINED;
@@ -133,6 +133,11 @@ st_src_reg::st_src_reg()
    this->is_double_vertex_input = false;
 }
 
+st_src_reg::st_src_reg()
+{
+   reset();
+}
+
 st_src_reg::st_src_reg(const st_src_reg &reg)
 {
    *this = reg;