171 lines
8.3 KiB
Diff
171 lines
8.3 KiB
Diff
From d7a214f54a4bc9b5dedb72f3fac267fa1660bd88 Mon Sep 17 00:00:00 2001
|
|
From: Hubert Maier <raziel-@users.noreply.github.com>
|
|
Date: Wed, 3 Apr 2024 14:08:28 +0200
|
|
Subject: [PATCH 3/3] init.c: Fix spelling and typos
|
|
|
|
---
|
|
src/gl/init.c | 50 +++++++++++++++++++++++++-------------------------
|
|
1 file changed, 25 insertions(+), 25 deletions(-)
|
|
|
|
diff --git a/src/gl/init.c b/src/gl/init.c
|
|
index 0398a1b5..47ad0476 100644
|
|
--- a/src/gl/init.c
|
|
+++ b/src/gl/init.c
|
|
@@ -141,7 +141,7 @@ void initialize_gl4es() {
|
|
#endif
|
|
case 4:
|
|
#ifdef NO_GBM
|
|
- SHUT_LOGD("GBM Support not builded, cannot use it\n");
|
|
+ SHUT_LOGD("GBM support not built, cannot use it\n");
|
|
#else
|
|
SHUT_LOGD("using GBM\n");
|
|
globals4es.usefb = 0;
|
|
@@ -164,7 +164,7 @@ void initialize_gl4es() {
|
|
env(LIBGL_NOBGRA, globals4es.nobgra, "Ignore BGRA texture capability");
|
|
env(LIBGL_NOTEXRECT, globals4es.notexrect, "Don't export Text Rectangle extension");
|
|
if(globals4es.usefbo) {
|
|
- env(LIBGL_FBONOALPHA, globals4es.fbo_noalpha, "Main FBO have no alpha channel");
|
|
+ env(LIBGL_FBONOALPHA, globals4es.fbo_noalpha, "Main FBO has no alpha channel");
|
|
}
|
|
|
|
globals4es.es=ReturnEnvVarInt("LIBGL_ES");
|
|
@@ -302,37 +302,37 @@ void initialize_gl4es() {
|
|
globals4es.texshrink=ReturnEnvVarInt("LIBGL_SHRINK");
|
|
switch(globals4es.texshrink) {
|
|
case 10:
|
|
- SHUT_LOGD("Texture shink, mode 10 selected (advertise 8192 max texture size, but >2048 are quadshrinked and > 512 are shrinked), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 10 selected (advertise 8192 max texture size, but >2048 are quadshrinked and > 512 are shrinked), but not for empty textures\n");
|
|
break;
|
|
case 11:
|
|
- SHUT_LOGD("Texture shink, mode 11 selected (advertise a max texture size *2, but every texture with one dimension > max texture size will get shrinked to max texture size), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 11 selected (advertise a max texture size *2, but every texture with one dimension > max texture size will get shrinked to max texture size), but not for empty textures\n");
|
|
break;
|
|
case 1:
|
|
- SHUT_LOGD("Texture shink, mode 1 selected (everything / 2)\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 1 selected (everything / 2)\n");
|
|
break;
|
|
case 2:
|
|
- SHUT_LOGD("Texture shink, mode 2 selected (only > 512 /2 )\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 2 selected (only > 512 /2 )\n");
|
|
break;
|
|
case 3:
|
|
- SHUT_LOGD("Texture shink, mode 3 selected (only > 256 /2 )\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 3 selected (only > 256 /2 )\n");
|
|
break;
|
|
case 4:
|
|
- SHUT_LOGD("Texture shink, mode 4 selected (only > 256 /2, >=1024 /4 )\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 4 selected (only > 256 /2, >=1024 /4 )\n");
|
|
break;
|
|
case 5:
|
|
- SHUT_LOGD("Texture shink, mode 5 selected (every > 256 is downscaled to 256 ), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 5 selected (every > 256 is downscaled to 256 ), but not for empty textures\n");
|
|
break;
|
|
case 6:
|
|
- SHUT_LOGD("Texture shink, mode 6 selected (only > 128 /2, >=512 is downscaled to 256 ), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 6 selected (only > 128 /2, >=512 is downscaled to 256 ), but not for empty textures\n");
|
|
break;
|
|
case 7:
|
|
- SHUT_LOGD("Texture shink, mode 7 selected (only > 512 /2 ), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 7 selected (only > 512 /2 ), but not for empty textures\n");
|
|
break;
|
|
case 8:
|
|
- SHUT_LOGD("Texture shink, mode 8 selected (advertise 8192 max texture size, but >2048 are shrinked to 2048)\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 8 selected (advertise 8192 max texture size, but >2048 are shrinked to 2048)\n");
|
|
break;
|
|
case 9:
|
|
- SHUT_LOGD("Texture shink, mode 9 selected (advertise 8192 max texture size, but >4096 are quadshrinked and > 512 are shrinked), but not for empty texture\n");
|
|
+ SHUT_LOGD("Texture shrink, mode 9 selected (advertise 8192 max texture size, but >4096 are quadshrinked and > 512 are shrinked), but not for empty textures\n");
|
|
break;
|
|
default:
|
|
globals4es.texshrink=0;
|
|
@@ -427,7 +427,7 @@ void initialize_gl4es() {
|
|
globals4es.nodownsampling = 1;
|
|
SHUT_LOGD("No downsampling of DXTc textures\n");
|
|
}
|
|
- env(LIBGL_NOTEXMAT, globals4es.texmat, "Don't handle Texture Matrice internaly");
|
|
+ env(LIBGL_NOTEXMAT, globals4es.texmat, "Don't handle Texture Matrice internally");
|
|
env(LIBGL_NOVAOCACHE, globals4es.novaocache, "Don't use VAO cache");
|
|
if(IsEnvVarTrue("LIBGL_NOINTOVLHACK")) {
|
|
globals4es.nointovlhack = 1;
|
|
@@ -489,9 +489,9 @@ void initialize_gl4es() {
|
|
SHUT_LOGD("NPOT texture handled in hardware\n");
|
|
} else if(hardext.npot==1) {
|
|
globals4es.forcenpot = 1;
|
|
- SHUT_LOGD("Forcing NPOT support by disabling MIPMAP support for NPOT textures \n");
|
|
+ SHUT_LOGD("Forcing NPOT support by disabling MIPMAP support for NPOT textures\n");
|
|
} else {
|
|
- SHUT_LOGD("WARNING, No Limited or Full NPOT support in hardware, Forcing NPOT have no effect!\n");
|
|
+ SHUT_LOGD("WARNING, No Limited or Full NPOT support in hardware, Forcing NPOT has no effect!\n");
|
|
}
|
|
}
|
|
|
|
@@ -530,13 +530,13 @@ void initialize_gl4es() {
|
|
SHUT_LOGD("Use of VBO disabled\n");
|
|
break;
|
|
case 1:
|
|
- SHUT_LOGD("try to use VBO\n");
|
|
+ SHUT_LOGD("Trying to use VBO\n");
|
|
break;
|
|
case 2:
|
|
- SHUT_LOGD("try to use VBO (also with glLockArrays)\n");
|
|
+ SHUT_LOGD("Trying to use VBO (also with glLockArrays)\n");
|
|
break;
|
|
case 3:
|
|
- SHUT_LOGD("try to use VBO (special glLockArrays case for idtech3 engine)\n");
|
|
+ SHUT_LOGD("Trying to use VBO (special glLockArrays case for idtech3 engine)\n");
|
|
break;
|
|
default:
|
|
globals4es.usevbo=1;
|
|
@@ -621,7 +621,7 @@ void initialize_gl4es() {
|
|
SHUT_LOGD("No Texture Array in Shaders\n");
|
|
}
|
|
|
|
- env(LIBGL_LOGSHADERERROR, globals4es.logshader, "Log to the console Error compiling shaders");
|
|
+ env(LIBGL_LOGSHADERERROR, globals4es.logshader, "Log errors compiling shaders to the console");
|
|
env(LIBGL_SHADERNOGLES, globals4es.shadernogles, "Remove GLES part in shader");
|
|
env(LIBGL_NOES2COMPAT, globals4es.noes2, "Don't expose GLX_EXT_create_context_es2_profile extension");
|
|
env(LIBGL_NORMALIZE, globals4es.normalize, "Force normals to be normalized on FPE shaders");
|
|
@@ -634,7 +634,7 @@ void initialize_gl4es() {
|
|
globals4es.dbgshaderconv|=3; // select both
|
|
if(!(globals4es.dbgshaderconv&12)) // neither before or after
|
|
globals4es.dbgshaderconv|=12; // select both
|
|
- SHUT_LOGD_NOPREFIX("Log to the console all shaders before and after conversion: ");
|
|
+ SHUT_LOGD_NOPREFIX("Log all shaders, before and after conversion, to the console: ");
|
|
if(globals4es.dbgshaderconv&4)
|
|
SHUT_LOGD_NOPREFIX("Before ");
|
|
if(globals4es.dbgshaderconv&8)
|
|
@@ -646,7 +646,7 @@ void initialize_gl4es() {
|
|
SHUT_LOGD_NOPREFIX("\n");
|
|
}
|
|
|
|
- env(LIBGL_NOCLEAN, globals4es.noclean, "Don't clean Context when destroy");
|
|
+ env(LIBGL_NOCLEAN, globals4es.noclean, "Don't clean Context when destroyed");
|
|
|
|
globals4es.glxrecycle = 1;
|
|
#ifndef NOEGL
|
|
@@ -670,7 +670,7 @@ void initialize_gl4es() {
|
|
SHUT_LOGD("Current folder is:%s\n", cwd);
|
|
|
|
if(hardext.shader_fbfetch) {
|
|
- env(LIBGL_SHADERBLEND, globals4es.shaderblend, "Blend will be handle in shaders");
|
|
+ env(LIBGL_SHADERBLEND, globals4es.shaderblend, "Blend will be handled in shaders");
|
|
}
|
|
if(hardext.prgbin_n>0 && !globals4es.notexarray) {
|
|
env(LIBGL_NOPSA, globals4es.nopsa, "Don't use PrecompiledShaderArchive");
|
|
@@ -724,10 +724,10 @@ __attribute__((destructor))
|
|
#endif
|
|
void close_gl4es() {
|
|
#ifdef GL4ES_COMPILE_FOR_USE_IN_SHARED_LIB
|
|
- SHUT_LOGD("Shuting down request\n");
|
|
+ SHUT_LOGD("Shutdown requested\n");
|
|
if(--inited) return;
|
|
#endif
|
|
- SHUT_LOGD("Shuting down\n");
|
|
+ SHUT_LOGD("Shutting down\n");
|
|
#ifndef NOX11
|
|
FreeFBVisual();
|
|
#endif
|
|
--
|
|
2.28.0
|
|
|