forked from pool/nodejs-electron
14 lines
429 B
Diff
14 lines
429 B
Diff
|
|
--- src/third_party/swiftshader/src/Pipeline/Constants.cpp.orig 2022-10-12 18:07:57.855149000 +0200
|
||
|
|
+++ src/third_party/swiftshader/src/Pipeline/Constants.cpp 2022-10-19 21:36:18.341533500 +0200
|
||
|
|
@@ -306,7 +306,9 @@
|
||
|
|
|
||
|
|
for(int i = 0; i <= 0xFFFF; i++)
|
||
|
|
{
|
||
|
|
- half2float[i] = (float)reinterpret_cast<half &>(i);
|
||
|
|
+ half i_float;
|
||
|
|
+ std::memcpy(&i_float, &i, sizeof(half));
|
||
|
|
+ half2float[i] = static_cast<float>(i_float);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|