ref: d7204cad0f01c1c0c4886cd0b7ac55ce459fa36d
parent: ba2222775a406a10a60b1c055378968a3eb5a8f7
author: Dominic Szablewski <dominic@phoboslab.org>
date: Tue Aug 15 13:50:34 EDT 2023
Remove obsolete/debug code
--- a/src/render_gl.c
+++ b/src/render_gl.c
@@ -125,21 +125,6 @@
glAttachShader(program, vs);
glAttachShader(program, fs);
glLinkProgram(program);
-
- GLint linked;
- glGetProgramiv(program, GL_LINK_STATUS, &linked);
- if (!linked) {
- #ifdef CRTEMU_REPORT_SHADER_ERRORS
- char error_message[256];
- strcpy(error_message, prefix);
- int len = 0, written = 0;
- glGetShaderiv(vs, GL_INFO_LOG_LENGTH, &len);
- glGetShaderInfoLog(programm, (GLsizei)( sizeof(error_message)), &written, error_message);
- die("Shader Link Error: %s" error_message);
- #endif
- return 0;
- }
-
glUseProgram(program);
return program;
}
@@ -172,7 +157,6 @@
fade.y, fade.x, // fadeout far, near
length(vec4(camera_pos, 1.0) - model * vec4(pos, 1.0))
);
- v_uv = uv;
v_uv = uv / 2048.0; // ATLAS_GRID * ATLAS_SIZE
}
);
--- a/src/wipeout/sfx.c
+++ b/src/wipeout/sfx.c
@@ -320,7 +320,6 @@
// Find currently active nodes: those that play and have volume > 0
sfx_t *active_nodes[SFX_MAX_ACTIVE];
int active_nodes_len = 0;
- int total_on = 0;
for (int n = 0; n < SFX_MAX; n++) {
sfx_t *sfx = &nodes[n];
if (flags_is(sfx->flags, SFX_PLAY) && (sfx->volume > 0 || sfx->current_volume > 0.01)) {
@@ -328,9 +327,6 @@
if (active_nodes_len >= SFX_MAX_ACTIVE) {
break;
}
- }
- if (flags_is(sfx->flags, SFX_PLAY)) {
- total_on++;
}
}
--- a/src/wipeout/weapon.c
+++ b/src/wipeout/weapon.c
@@ -552,10 +552,6 @@
void weapon_update_shield(weapon_t *self) {
if (self->timer <= 0) {
self->active = false;
-
- if (self->owner->pilot == g.pilot) {
- // KillNote(SHIELDS);
- }
flags_rm(self->owner->flags, SHIP_SHIELDED);
return;
}