File tree 1 file changed +13
-0
lines changed
plugins/OGF/RayTracing/shaders
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 60
60
61
61
#ifdef __GNUC__
62
62
#ifndef __ICC
63
+
63
64
#pragma GCC diagnostic push
65
+
64
66
#pragma GCC diagnostic ignored "-Wsign-conversion"
65
67
#pragma GCC diagnostic ignored "-Wdouble-promotion"
66
68
#pragma GCC diagnostic ignored "-Wconversion"
67
69
#pragma GCC diagnostic ignored "-Wpedantic"
68
70
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
71
+
72
+ #ifdef __clang__
73
+ #pragma GCC diagnostic ignored "-Wzero-as-null-pointer"
74
+ #pragma GCC diagnostic ignored "-Wcomma"
75
+ #pragma GCC diagnostic ignored "-Wcast-qual"
69
76
#endif
77
+
70
78
#endif
79
+ #endif
80
+
71
81
72
82
#define TINYBVH_IMPLEMENTATION
73
83
#include < OGF/RayTracing/third_party/tiny_bvh.h>
@@ -322,6 +332,9 @@ namespace OGF {
322
332
);
323
333
}
324
334
335
+ glPixelStorei (GL_UNPACK_ALIGNMENT,1 );
336
+ glPixelStorei (GL_PACK_ALIGNMENT,1 );
337
+
325
338
glReadPixels (
326
339
0 , 0 ,
327
340
GLsizei (w), GLsizei (h),
You can’t perform that action at this time.
0 commit comments