mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
Compile fix for use of sqrt
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include "threading.h"
|
||||
|
||||
namespace Threading
|
||||
@@ -53,7 +54,7 @@ static float spinForce = 0.0f;
|
||||
Threading::Sleep(sleepMS - 1); \
|
||||
float x = (float)spinRounds; \
|
||||
for(uint32_t counter = 0; counter < spinRounds; counter++) \
|
||||
x = sqrt(x + 2.0f); \
|
||||
x = sqrtf(x + 2.0f); \
|
||||
spinForce = x; \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user