mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-26 09:59:04 +01:00
Remove obsolete/debug code
This commit is contained in:
parent
ba2222775a
commit
d7204cad0f
3 changed files with 0 additions and 24 deletions
|
@ -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
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue