Skip to content

Commit

Permalink
Capitalize PRINT_VERBOSE macro to avoid a conflict with UtilityFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Dec 18, 2024
1 parent 6e2cf2a commit 3c31863
Show file tree
Hide file tree
Showing 120 changed files with 627 additions and 630 deletions.
4 changes: 2 additions & 2 deletions core/debugger/remote_debugger_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ Error RemoteDebuggerPeerTCP::connect_to_host(const String &p_host, uint16_t p_po
for (int i = 0; i < tries; i++) {
tcp_client->poll();
if (tcp_client->get_status() == StreamPeerTCP::STATUS_CONNECTED) {
print_verbose("Remote Debugger: Connected!");
PRINT_VERBOSE("Remote Debugger: Connected!");
break;
} else {
const int ms = waits[i];
OS::get_singleton()->delay_usec(ms * 1000);
print_verbose("Remote Debugger: Connection failed with status: '" + String::num(tcp_client->get_status()) + "', retrying in " + String::num(ms) + " msec.");
PRINT_VERBOSE("Remote Debugger: Connection failed with status: '" + String::num(tcp_client->get_status()) + "', retrying in " + String::num(ms) + " msec.");
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/input/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ void Input::parse_mapping(const String &p_mapping) {
JoyButton output_button = _get_output_button(output);
JoyAxis output_axis = _get_output_axis(output);
if (output_button == JoyButton::INVALID && output_axis == JoyAxis::INVALID) {
print_verbose(vformat("Unrecognized output string \"%s\" in mapping:\n%s", output, p_mapping));
PRINT_VERBOSE(vformat("Unrecognized output string \"%s\" in mapping:\n%s", output, p_mapping));
continue;
}
ERR_CONTINUE_MSG(output_button != JoyButton::INVALID && output_axis != JoyAxis::INVALID,
Expand Down Expand Up @@ -1833,7 +1833,7 @@ Input::Input() {
continue;
}

print_verbose(vformat("Device Ignored -- Vendor: %s Product: %s", vid_pid[0], vid_pid[1]));
PRINT_VERBOSE(vformat("Device Ignored -- Vendor: %s Product: %s", vid_pid[0], vid_pid[1]));
const uint16_t vid_unswapped = vid_pid[0].hex_to_int();
const uint16_t pid_unswapped = vid_pid[1].hex_to_int();
const uint16_t vid = BSWAP16(vid_unswapped);
Expand Down
4 changes: 2 additions & 2 deletions core/io/file_access_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ bool PackedSourcePCK::try_open_pack(const String &p_path, bool p_replace_files,
magic = f->get_32();
if (magic == PACK_HEADER_MAGIC) {
#ifdef DEBUG_ENABLED
print_verbose("PCK header found in executable pck section, loading from offset 0x" + String::num_int64(pck_off - 4, 16));
PRINT_VERBOSE("PCK header found in executable pck section, loading from offset 0x" + String::num_int64(pck_off - 4, 16));
#endif
pck_header_found = true;
break;
Expand Down Expand Up @@ -247,7 +247,7 @@ bool PackedSourcePCK::try_open_pack(const String &p_path, bool p_replace_files,
magic = f->get_32();
if (magic == PACK_HEADER_MAGIC) {
#ifdef DEBUG_ENABLED
print_verbose("PCK header found at the end of executable, loading from offset 0x" + String::num_int64(f->get_position() - 4, 16));
PRINT_VERBOSE("PCK header found at the end of executable, loading from offset 0x" + String::num_int64(f->get_position() - 4, 16));
#endif
pck_header_found = true;
}
Expand Down
16 changes: 8 additions & 8 deletions core/io/remote_filesystem_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int

IPAddress ip = p_host.is_valid_ip_address() ? IPAddress(p_host) : IP::get_singleton()->resolve_hostname(p_host);
ERR_FAIL_COND_V_MSG(!ip.is_valid(), ERR_INVALID_PARAMETER, vformat("Unable to resolve remote filesystem server hostname: '%s'.", p_host));
print_verbose(vformat("Remote Filesystem: Connecting to host %s, port %d.", ip, p_port));
PRINT_VERBOSE(vformat("Remote Filesystem: Connecting to host %s, port %d.", ip, p_port));
Error err = tcp_client->connect_to_host(ip, p_port);
ERR_FAIL_COND_V_MSG(err != OK, err, vformat("Unable to open connection to remote file server (%s, port %d) failed.", String(p_host), p_port));

Expand All @@ -166,17 +166,17 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int
}

// Connection OK, now send the current file state.
print_verbose("Remote Filesystem: Connection OK.");
PRINT_VERBOSE("Remote Filesystem: Connection OK.");

// Header (GRFS) - Godot Remote File System
print_verbose("Remote Filesystem: Sending header");
PRINT_VERBOSE("Remote Filesystem: Sending header");
tcp_client->put_u8('G');
tcp_client->put_u8('R');
tcp_client->put_u8('F');
tcp_client->put_u8('S');
// Protocol version
tcp_client->put_32(FILESYSTEM_PROTOCOL_VERSION);
print_verbose("Remote Filesystem: Sending password");
PRINT_VERBOSE("Remote Filesystem: Sending password");
uint8_t password[PASSWORD_LENGTH]; // Send fixed size password, since it's easier and safe to validate.
for (int i = 0; i < PASSWORD_LENGTH; i++) {
if (i < p_password.length()) {
Expand All @@ -186,7 +186,7 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int
}
}
tcp_client->put_data(password, PASSWORD_LENGTH);
print_verbose("Remote Filesystem: Tags.");
PRINT_VERBOSE("Remote Filesystem: Tags.");
Vector<String> tags;
{
tags.push_back(OS::get_singleton()->get_identifier());
Expand All @@ -207,7 +207,7 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int
tcp_client->put_utf8_string(tags[i]);
}
// Size of compressed list of files
print_verbose("Remote Filesystem: Sending file list");
PRINT_VERBOSE("Remote Filesystem: Sending file list");

Vector<FileCache> file_cache = _load_cache_file();

Expand Down Expand Up @@ -306,7 +306,7 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int
new_file_cache.push_back(fc);
}

print_verbose("Remote Filesystem: Updating the cache file.");
PRINT_VERBOSE("Remote Filesystem: Updating the cache file.");

// Go through the list of local files read initially (file_cache) and see which ones are
// unchanged (not sent again from the server).
Expand All @@ -322,7 +322,7 @@ Error RemoteFilesystemClient::_synchronize_with_server(const String &p_host, int
err = _store_cache_file(new_file_cache);
ERR_FAIL_COND_V_MSG(err != OK, ERR_FILE_CANT_OPEN, "Error writing the remote filesystem file cache.");

print_verbose("Remote Filesystem: Update success.");
PRINT_VERBOSE("Remote Filesystem: Update success.");

_update_cache_path(r_cache_path);
return OK;
Expand Down
10 changes: 5 additions & 5 deletions core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void ResourceLoader::_run_load_task(void *p_userdata) {
bool xl_remapped = false;
const String &remapped_path = _path_remap(load_task.local_path, &xl_remapped);

print_verbose("Loading resource: " + remapped_path);
PRINT_VERBOSE("Loading resource: " + remapped_path);

Error load_err = OK;
Ref<Resource> res = _load(remapped_path, remapped_path != load_task.local_path ? load_task.local_path : String(), load_task.type_hint, load_task.cache_mode, &load_err, load_task.use_sub_threads, &load_task.progress);
Expand All @@ -370,7 +370,7 @@ void ResourceLoader::_run_load_task(void *p_userdata) {
}

if (res.is_null()) {
print_verbose("Failed loading resource: " + remapped_path);
PRINT_VERBOSE("Failed loading resource: " + remapped_path);
}

thread_load_mutex.lock();
Expand Down Expand Up @@ -496,7 +496,7 @@ Error ResourceLoader::load_threaded_request(const String &p_path, const String &
ResourceLoader::LoadToken *ResourceLoader::_load_threaded_request_reuse_user_token(const String &p_path) {
HashMap<String, LoadToken *>::Iterator E = user_load_tokens.find(p_path);
if (E) {
print_verbose("load_threaded_request(): Another threaded load for resource path '" + p_path + "' has been initiated. Not an error.");
PRINT_VERBOSE("load_threaded_request(): Another threaded load for resource path '" + p_path + "' has been initiated. Not an error.");
LoadToken *token = E->value;
token->user_rc++;
return token;
Expand Down Expand Up @@ -666,7 +666,7 @@ ResourceLoader::ThreadLoadStatus ResourceLoader::load_threaded_get_status(const
MutexLock thread_load_lock(thread_load_mutex);

if (!user_load_tokens.has(p_path)) {
print_verbose("load_threaded_get_status(): No threaded load for resource path '" + p_path + "' has been initiated or its result has already been collected.");
PRINT_VERBOSE("load_threaded_get_status(): No threaded load for resource path '" + p_path + "' has been initiated or its result has already been collected.");
return THREAD_LOAD_INVALID_RESOURCE;
}

Expand Down Expand Up @@ -707,7 +707,7 @@ Ref<Resource> ResourceLoader::load_threaded_get(const String &p_path, Error *r_e
MutexLock thread_load_lock(thread_load_mutex);

if (!user_load_tokens.has(p_path)) {
print_verbose("load_threaded_get(): No threaded load for resource path '" + p_path + "' has been initiated or its result has already been collected.");
PRINT_VERBOSE("load_threaded_get(): No threaded load for resource path '" + p_path + "' has been initiated or its result has already been collected.");
if (r_error) {
*r_error = ERR_INVALID_PARAMETER;
}
Expand Down
2 changes: 1 addition & 1 deletion core/object/worker_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio)

max_low_priority_threads = CLAMP(p_thread_count * p_low_priority_task_ratio, 1, p_thread_count - 1);

print_verbose(vformat("WorkerThreadPool: %d threads, %d max low-priority.", p_thread_count, max_low_priority_threads));
PRINT_VERBOSE(vformat("WorkerThreadPool: %d threads, %d max low-priority.", p_thread_count, max_low_priority_threads));

threads.resize(p_thread_count);

Expand Down
2 changes: 1 addition & 1 deletion core/string/print_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extern void print_error(const String &p_string);
extern bool is_print_verbose_enabled();

// This version avoids processing the text to be printed until it actually has to be printed, saving some CPU usage.
#define print_verbose(m_text) \
#define PRINT_VERBOSE(m_text) \
{ \
if (is_print_verbose_enabled()) { \
print_line(m_text); \
Expand Down
2 changes: 1 addition & 1 deletion core/string/string_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void StringName::cleanup() {
}
}
if (lost_strings) {
print_verbose(vformat("StringName: %d unclaimed string names at exit.", lost_strings));
PRINT_VERBOSE(vformat("StringName: %d unclaimed string names at exit.", lost_strings));
}
configured = false;
}
Expand Down
2 changes: 0 additions & 2 deletions core/variant/variant_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,6 @@ void VariantUtilityFunctions::print_rich(const Variant **p_args, int p_arg_count
r_error.error = Callable::CallError::CALL_OK;
}

#undef print_verbose

void VariantUtilityFunctions::print_verbose(const Variant **p_args, int p_arg_count, Callable::CallError &r_error) {
if (OS::get_singleton()->is_stdout_verbose()) {
String s;
Expand Down
1 change: 0 additions & 1 deletion core/variant/variant_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ struct VariantUtilityFunctions {
static String type_string(Variant::Type p_type);
static void print(const Variant **p_args, int p_arg_count, Callable::CallError &r_error);
static void print_rich(const Variant **p_args, int p_arg_count, Callable::CallError &r_error);
#undef print_verbose
static void print_verbose(const Variant **p_args, int p_arg_count, Callable::CallError &r_error);
static void printerr(const Variant **p_args, int p_arg_count, Callable::CallError &r_error);
static void printt(const Variant **p_args, int p_arg_count, Callable::CallError &r_error);
Expand Down
6 changes: 3 additions & 3 deletions drivers/alsa/audio_driver_alsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Error AudioDriverALSA::init_output_device() {
status = snd_pcm_hw_params_set_period_size_near(pcm_handle, hwparams, &period_size, nullptr);
CHECK_FAIL(status < 0);

print_verbose("Audio buffer frames: " + itos(period_size) + " calculated latency: " + itos(period_size * 1000 / mix_rate) + "ms");
PRINT_VERBOSE("Audio buffer frames: " + itos(period_size) + " calculated latency: " + itos(period_size * 1000 / mix_rate) + "ms");

status = snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &periods, nullptr);
CHECK_FAIL(status < 0);
Expand Down Expand Up @@ -176,9 +176,9 @@ Error AudioDriverALSA::init() {
if (ver_parts.size() >= 2) {
ver_ok = ((ver_parts[0].to_int() == 1 && ver_parts[1].to_int() >= 1)) || (ver_parts[0].to_int() > 1); // 1.1.0
}
print_verbose(vformat("ALSA %s detected.", version));
PRINT_VERBOSE(vformat("ALSA %s detected.", version));
if (!ver_ok) {
print_verbose("Unsupported ALSA library version!");
PRINT_VERBOSE("Unsupported ALSA library version!");
return ERR_CANT_OPEN;
}

Expand Down
10 changes: 5 additions & 5 deletions drivers/coreaudio/audio_driver_coreaudio.mm
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@
unsigned int buffer_size = buffer_frames * channels;
samples_in.resize(buffer_size);

print_verbose("CoreAudio: detected " + itos(channels) + " channels");
print_verbose("CoreAudio: output sampling rate: " + itos(mix_rate) + " Hz");
print_verbose("CoreAudio: output audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms");
PRINT_VERBOSE("CoreAudio: detected " + itos(channels) + " channels");
PRINT_VERBOSE("CoreAudio: output sampling rate: " + itos(mix_rate) + " Hz");
PRINT_VERBOSE("CoreAudio: output audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms");

AURenderCallbackStruct callback;
memset(&callback, 0, sizeof(AURenderCallbackStruct));
Expand Down Expand Up @@ -473,8 +473,8 @@
result = AudioUnitInitialize(input_unit);
ERR_FAIL_COND_V(result != noErr, FAILED);

print_verbose("CoreAudio: input sampling rate: " + itos(capture_mix_rate) + " Hz");
print_verbose("CoreAudio: input audio buffer frames: " + itos(capture_buffer_frames) + " calculated latency: " + itos(capture_buffer_frames * 1000 / capture_mix_rate) + "ms");
PRINT_VERBOSE("CoreAudio: input sampling rate: " + itos(capture_mix_rate) + " Hz");
PRINT_VERBOSE("CoreAudio: input audio buffer frames: " + itos(capture_buffer_frames) + " calculated latency: " + itos(capture_buffer_frames * 1000 / capture_mix_rate) + "ms");

return OK;
}
Expand Down
44 changes: 22 additions & 22 deletions drivers/d3d12/rendering_device_driver_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void RenderingDeviceDriverD3D12::_debug_message_func(D3D12_MESSAGE_CATEGORY p_ca
// Convert D3D12 severity to our own log macros.
switch (p_severity) {
case D3D12_MESSAGE_SEVERITY_MESSAGE:
print_verbose(error_message);
PRINT_VERBOSE(error_message);
break;
case D3D12_MESSAGE_SEVERITY_INFO:
print_line(error_message);
Expand Down Expand Up @@ -2264,7 +2264,7 @@ Error RenderingDeviceDriverD3D12::command_queue_execute_and_present(CommandQueue
SwapChain *swap_chain = (SwapChain *)(p_swap_chains[i].id);
res = swap_chain->d3d_swap_chain->Present(swap_chain->sync_interval, swap_chain->present_flags);
if (!SUCCEEDED(res)) {
print_verbose(vformat("D3D12: Presenting swapchain failed with error 0x%08ux.", (uint64_t)res));
PRINT_VERBOSE(vformat("D3D12: Presenting swapchain failed with error 0x%08ux.", (uint64_t)res));
any_present_failed = true;
}
}
Expand Down Expand Up @@ -3289,7 +3289,7 @@ Vector<uint8_t> RenderingDeviceDriverD3D12::shader_compile_binary_from_spirv(Vec
dxil_logger logger = {};
logger.log = [](void *p_priv, const char *p_msg) {
#ifdef DEBUG_ENABLED
print_verbose(p_msg);
PRINT_VERBOSE(p_msg);
#endif
};

Expand Down Expand Up @@ -6490,8 +6490,8 @@ Error RenderingDeviceDriverD3D12::_check_capabilities() {
ERR_FAIL_COND_V_MSG(!shader_capabilities.shader_model, ERR_UNAVAILABLE,
vformat("No support for any of the suitable shader models (%s-%s) has been found.", D3D_SHADER_MODEL_TO_STRING(SMS_TO_CHECK[ARRAY_SIZE(SMS_TO_CHECK) - 1]), D3D_SHADER_MODEL_TO_STRING(SMS_TO_CHECK[0])));

print_verbose("- Shader:");
print_verbose(" model: " + D3D_SHADER_MODEL_TO_STRING(shader_capabilities.shader_model));
PRINT_VERBOSE("- Shader:");
PRINT_VERBOSE(" model: " + D3D_SHADER_MODEL_TO_STRING(shader_capabilities.shader_model));
}

D3D12_FEATURE_DATA_D3D12_OPTIONS options = {};
Expand Down Expand Up @@ -6557,51 +6557,51 @@ Error RenderingDeviceDriverD3D12::_check_capabilities() {
}

if (vrs_capabilities.draw_call_supported || vrs_capabilities.primitive_supported || vrs_capabilities.ss_image_supported) {
print_verbose("- D3D12 Variable Rate Shading supported:");
PRINT_VERBOSE("- D3D12 Variable Rate Shading supported:");
if (vrs_capabilities.draw_call_supported) {
print_verbose(" Draw call");
PRINT_VERBOSE(" Draw call");
}
if (vrs_capabilities.primitive_supported) {
print_verbose(String(" Per-primitive (multi-viewport: ") + (vrs_capabilities.primitive_in_multiviewport ? "yes" : "no") + ")");
PRINT_VERBOSE(String(" Per-primitive (multi-viewport: ") + (vrs_capabilities.primitive_in_multiviewport ? "yes" : "no") + ")");
}
if (vrs_capabilities.ss_image_supported) {
print_verbose(String(" Screen-space image (tile size: ") + itos(vrs_capabilities.ss_image_tile_size) + ")");
PRINT_VERBOSE(String(" Screen-space image (tile size: ") + itos(vrs_capabilities.ss_image_tile_size) + ")");
}
if (vrs_capabilities.additional_rates_supported) {
print_verbose(String(" Additional rates: ") + (vrs_capabilities.additional_rates_supported ? "yes" : "no"));
PRINT_VERBOSE(String(" Additional rates: ") + (vrs_capabilities.additional_rates_supported ? "yes" : "no"));
}
} else {
print_verbose("- D3D12 Variable Rate Shading not supported");
PRINT_VERBOSE("- D3D12 Variable Rate Shading not supported");
}

if (multiview_capabilities.is_supported) {
print_verbose("- D3D12 multiview supported:");
print_verbose(" max view count: " + itos(multiview_capabilities.max_view_count));
//print_verbose(" max instances: " + itos(multiview_capabilities.max_instance_count)); // Hardcoded; not very useful at the moment.
PRINT_VERBOSE("- D3D12 multiview supported:");
PRINT_VERBOSE(" max view count: " + itos(multiview_capabilities.max_view_count));
//PRINT_VERBOSE(" max instances: " + itos(multiview_capabilities.max_instance_count)); // Hardcoded; not very useful at the moment.
} else {
print_verbose("- D3D12 multiview not supported");
PRINT_VERBOSE("- D3D12 multiview not supported");
}

if (format_capabilities.relaxed_casting_supported) {
#if 0
print_verbose("- Relaxed casting supported");
PRINT_VERBOSE("- Relaxed casting supported");
#else
// Certain configurations (Windows 11 with an updated NVIDIA driver) crash when using relaxed casting.
// Therefore, we disable it temporarily until we can assure that it's reliable.
// There are fallbacks in place that work in every case, if less efficient.
format_capabilities.relaxed_casting_supported = false;
print_verbose("- Relaxed casting supported (but disabled for now)");
PRINT_VERBOSE("- Relaxed casting supported (but disabled for now)");
#endif
} else {
print_verbose("- Relaxed casting not supported");
PRINT_VERBOSE("- Relaxed casting not supported");
}

print_verbose(String("- D3D12 16-bit ops supported: ") + (shader_capabilities.native_16bit_ops ? "yes" : "no"));
PRINT_VERBOSE(String("- D3D12 16-bit ops supported: ") + (shader_capabilities.native_16bit_ops ? "yes" : "no"));

if (misc_features_support.depth_bounds_supported) {
print_verbose("- Depth bounds test supported");
PRINT_VERBOSE("- Depth bounds test supported");
} else {
print_verbose("- Depth bounds test not supported");
PRINT_VERBOSE("- Depth bounds test not supported");
}

return OK;
Expand Down Expand Up @@ -6633,7 +6633,7 @@ Error RenderingDeviceDriverD3D12::_get_device_limits() {

res = unused_command_queue->GetTimestampFrequency(&device_limits.timestamp_frequency);
if (!SUCCEEDED(res)) {
print_verbose("D3D12: GetTimestampFrequency failed with error " + vformat("0x%08ux", (uint64_t)res) + ". Timestamps will be inaccurate.");
PRINT_VERBOSE("D3D12: GetTimestampFrequency failed with error " + vformat("0x%08ux", (uint64_t)res) + ". Timestamps will be inaccurate.");
}

return OK;
Expand Down
6 changes: 3 additions & 3 deletions drivers/egl/egl_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int EGLManager::_get_gldisplay_id(void *p_display) {

if (egl_extensions.has("EGL_ANGLE_surface_orientation")) {
new_gldisplay.has_EGL_ANGLE_surface_orientation = true;
print_verbose("EGL: EGL_ANGLE_surface_orientation is supported.");
PRINT_VERBOSE("EGL: EGL_ANGLE_surface_orientation is supported.");
}
}
#endif
Expand Down Expand Up @@ -301,7 +301,7 @@ Error EGLManager::window_create(DisplayServer::WindowID p_window_id, void *p_dis
if (eglQuerySurface(gldisplay.egl_display, glwindow.egl_surface, EGL_SURFACE_ORIENTATION_ANGLE, &orientation)) {
if (orientation & EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE && !(orientation & EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE)) {
glwindow.flipped_y = true;
print_verbose("EGL: Using optimal surface orientation: Invert Y");
PRINT_VERBOSE("EGL: Using optimal surface orientation: Invert Y");
}
} else {
ERR_PRINT(vformat("Failed to get EGL_SURFACE_ORIENTATION_ANGLE, error: 0x%08X", eglGetError()));
Expand Down Expand Up @@ -480,7 +480,7 @@ Error EGLManager::initialize(void *p_native_display) {
int major = GLAD_VERSION_MAJOR(version);
int minor = GLAD_VERSION_MINOR(version);

print_verbose(vformat("Loaded EGL %d.%d", major, minor));
PRINT_VERBOSE(vformat("Loaded EGL %d.%d", major, minor));

ERR_FAIL_COND_V_MSG(!GLAD_EGL_VERSION_1_4, ERR_UNAVAILABLE, vformat("EGL version is too old! %d.%d < 1.4", major, minor));

Expand Down
Loading

0 comments on commit 3c31863

Please sign in to comment.