Skip to content

Commit

Permalink
Merge pull request #456 from raziel-/patch-1
Browse files Browse the repository at this point in the history
init.c: Fix spelling and typos
  • Loading branch information
ptitSeb authored Apr 3, 2024
2 parents c8b9cbd + d7a214f commit 22d2f60
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/gl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -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");
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 22d2f60

Please sign in to comment.