Forráskód Böngészése

Changed bools to uint32_t as this may be a compiler bug..

Juan Linietsky 8 éve
szülő
commit
06d7e36898
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      drivers/gles3/rasterizer_scene_gles3.h

+ 4 - 4
drivers/gles3/rasterizer_scene_gles3.h

@@ -108,7 +108,7 @@ public:
 		TonemapShaderGLES3 tonemap_shader;
 		TonemapShaderGLES3 tonemap_shader;
 
 
 		struct SceneDataUBO {
 		struct SceneDataUBO {
-
+			//this is a std140 compatible struct. Please read the OpenGL 3.3 Specificaiton spec before doing any changes
 			float projection_matrix[16];
 			float projection_matrix[16];
 			float camera_inverse_matrix[16];
 			float camera_inverse_matrix[16];
 			float camera_matrix[16];
 			float camera_matrix[16];
@@ -133,12 +133,12 @@ public:
 			float subsurface_scatter_width;
 			float subsurface_scatter_width;
 			float ambient_occlusion_affect_light;
 			float ambient_occlusion_affect_light;
 
 
-			bool fog_depth_enabled;
+			uint32_t fog_depth_enabled;
 			float fog_depth_begin;
 			float fog_depth_begin;
 			float fog_depth_curve;
 			float fog_depth_curve;
-			bool fog_transmit_enabled;
+			uint32_t fog_transmit_enabled;
 			float fog_transmit_curve;
 			float fog_transmit_curve;
-			bool fog_height_enabled;
+			uint32_t fog_height_enabled;
 			float fog_height_min;
 			float fog_height_min;
 			float fog_height_max;
 			float fog_height_max;
 			float fog_height_curve;
 			float fog_height_curve;