diff --git a/src/render_gl.c b/src/render_gl.c index 3086d14..a678390 100644 --- a/src/render_gl.c +++ b/src/render_gl.c @@ -125,21 +125,6 @@ static GLuint create_program(const char *vs_source, const char *fs_source) { 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 @@ static const char * const SHADER_GAME_VS = SHADER_SOURCE( 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 } ); diff --git a/src/wipeout/sfx.c b/src/wipeout/sfx.c index 2213603..50eed0c 100644 --- a/src/wipeout/sfx.c +++ b/src/wipeout/sfx.c @@ -320,7 +320,6 @@ void sfx_stero_mix(float *buffer, uint32_t len) { // 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)) { @@ -329,9 +328,6 @@ void sfx_stero_mix(float *buffer, uint32_t len) { break; } } - if (flags_is(sfx->flags, SFX_PLAY)) { - total_on++; - } } uint32_t music_src_index = music->sample_data_pos * music->qoa.channels; diff --git a/src/wipeout/weapon.c b/src/wipeout/weapon.c index 8f2e1fd..0051d15 100755 --- a/src/wipeout/weapon.c +++ b/src/wipeout/weapon.c @@ -552,10 +552,6 @@ void weapon_fire_shield(ship_t *ship) { 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; }