mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Cleanups.
This commit is contained in:
parent
d142b69d86
commit
7dbd1cfc90
@ -5,7 +5,7 @@
|
||||
|
||||
#include "core/random_pcg.h"
|
||||
|
||||
//#include "os/os.h"
|
||||
#include "core/stime.h"
|
||||
#include "core/error_macros.h"
|
||||
|
||||
RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
|
||||
@ -15,8 +15,7 @@ RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
|
||||
}
|
||||
|
||||
void RandomPCG::randomize() {
|
||||
//seed((OS::get_singleton()->get_unix_time() + OS::get_singleton()->get_ticks_usec()) * pcg.state + PCG_DEFAULT_INC_64);
|
||||
ERR_PRINT("RandomPCG::randomize() fix!");
|
||||
seed((STime::date() + STime::time_us()) * pcg.state + PCG_DEFAULT_INC_64);
|
||||
}
|
||||
|
||||
double RandomPCG::random(double p_from, double p_to) {
|
||||
|
@ -23,10 +23,6 @@
|
||||
//{{FILE:3rd_stb_image_write.h}}
|
||||
//---
|
||||
#undef freelist
|
||||
#define STBTT_malloc(x, u) ((void)(u), MALLOC(x))
|
||||
#define STBTT_free(x, u) ((void)(u), FREE(x))
|
||||
#define NK_ASSERT ASSERT
|
||||
#define NK_DTOA(s, n) strcpy(s, va("%f", n)) // override cos built-in nk_dtoa() will freeze while parsing UINT_MAX otherwise
|
||||
|
||||
const char *Image::format_names[Image::FORMAT_MAX] = {
|
||||
"Lum8", // luminance
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include "render_core/shader.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
|
||||
bool Shader::bind() {
|
||||
if (current_shader != this) {
|
||||
|
Loading…
Reference in New Issue
Block a user