mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 04:04:24 +00:00
Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3
- Use lowercase driver names for the `--rendering-driver` command line argument.
This commit is contained in:
parent
e3491a3744
commit
ce97ddbcb1
98 changed files with 4344 additions and 12432 deletions
|
|
@ -201,11 +201,11 @@ String str_format(const char *p_format, ...) {
|
|||
}
|
||||
|
||||
#if defined(MINGW_ENABLED)
|
||||
#define gd_vsnprintf(m_buffer, m_count, m_format, m_args_copy) vsnprintf_s(m_buffer, m_count, _TRUNCATE, m_format, m_args_copy)
|
||||
#define gd_vscprintf(m_format, m_args_copy) _vscprintf(m_format, m_args_copy)
|
||||
#define RSnprintf(m_buffer, m_count, m_format, m_args_copy) vsnprintf_s(m_buffer, m_count, _TRUNCATE, m_format, m_args_copy)
|
||||
#define RScprintf(m_format, m_args_copy) _vscprintf(m_format, m_args_copy)
|
||||
#else
|
||||
#define gd_vsnprintf(m_buffer, m_count, m_format, m_args_copy) vsnprintf(m_buffer, m_count, m_format, m_args_copy)
|
||||
#define gd_vscprintf(m_format, m_args_copy) vsnprintf(nullptr, 0, p_format, m_args_copy)
|
||||
#define RSnprintf(m_buffer, m_count, m_format, m_args_copy) vsnprintf(m_buffer, m_count, m_format, m_args_copy)
|
||||
#define RScprintf(m_format, m_args_copy) vsnprintf(nullptr, 0, p_format, m_args_copy)
|
||||
#endif
|
||||
|
||||
String str_format(const char *p_format, va_list p_list) {
|
||||
|
|
@ -231,7 +231,7 @@ char *str_format_new(const char *p_format, va_list p_list) {
|
|||
va_list list;
|
||||
|
||||
va_copy(list, p_list);
|
||||
int len = gd_vscprintf(p_format, list);
|
||||
int len = RScprintf(p_format, list);
|
||||
va_end(list);
|
||||
|
||||
len += 1; // for the trailing '/0'
|
||||
|
|
@ -239,7 +239,7 @@ char *str_format_new(const char *p_format, va_list p_list) {
|
|||
char *buffer(memnew_arr(char, len));
|
||||
|
||||
va_copy(list, p_list);
|
||||
gd_vsnprintf(buffer, len, p_format, list);
|
||||
RSnprintf(buffer, len, p_format, list);
|
||||
va_end(list);
|
||||
|
||||
return buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue