Daniele Bartolini 2 лет назад
Родитель
Сommit
472ebbc729

+ 0 - 5
src/resource/compile_options.cpp

@@ -212,11 +212,6 @@ void CompileOptions::write(const Buffer &data)
 	write(array::begin(data), array::size(data));
 }
 
-const char *CompileOptions::platform() const
-{
-	return _platform;
-}
-
 const char *CompileOptions::exe_path(const char * const *paths, u32 num)
 {
 	for (u32 ii = 0; ii < num; ++ii) {

+ 0 - 3
src/resource/compile_options.h

@@ -149,9 +149,6 @@ struct CompileOptions
 	///
 	void write(const Buffer &data);
 
-	///
-	const char *platform() const;
-
 	/// Returns the first path with executable permissions or NULL if none found.
 	const char *exe_path(const char * const *paths, u32 num);
 

+ 2 - 2
src/resource/shader_resource.cpp

@@ -1220,7 +1220,7 @@ namespace shader_resource_internal
 				, _vs_out_path.c_str()
 				, _varying_path.c_str()
 				, "vertex"
-				, _opts.platform()
+				, _opts._platform
 				);
 			if (sc != 0) {
 				delete_temp_files();
@@ -1237,7 +1237,7 @@ namespace shader_resource_internal
 				, _fs_out_path.c_str()
 				, _varying_path.c_str()
 				, "fragment"
-				, _opts.platform()
+				, _opts._platform
 				);
 			if (sc != 0) {
 				delete_temp_files();