Cleanups.

This commit is contained in:
Relintai 2024-01-05 10:09:15 +01:00
parent d142b69d86
commit 7dbd1cfc90
3 changed files with 2 additions and 8 deletions

View File

@ -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) {

View File

@ -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

View File

@ -1,7 +1,6 @@
#include "render_core/shader.h"
#include <stdio.h>
#include <vector>
bool Shader::bind() {
if (current_shader != this) {