summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 127607b)
raw | patch | inline | side by side (parent: 127607b)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 13 Oct 2019 15:30:18 +0000 (18:30 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 13 Oct 2019 15:30:18 +0000 (18:30 +0300) |
src/engine/e_sound_sdl.inc | patch | blob | history | |
src/engine/e_texture.pas | patch | blob | history | |
src/game/Doom2DF.lpr | patch | blob | history | |
src/shared/a_modes.inc | patch | blob | history |
index 175f4743f966649b11b87f20332213900945246d..9436cec6b42dee983b3ce2d5ae2aef01c68e5082 100644 (file)
uses
{$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
- SDL2, SDL2_mixer,
+ SDL2, SDL2_mixer, envvars,
e_log, SysUtils;
type
index 580a6ccb55dd849b745c7a4ac66d78d6e01fe16d..3e578c8088d25b39612a400bded3946147606d2c 100644 (file)
--- a/src/engine/e_texture.pas
+++ b/src/engine/e_texture.pas
Exit;
end;
+ Texture := 0;
glGenTextures(1, @Texture);
tex.id := Texture;
glBindTexture(GL_TEXTURE_2D, Texture);
diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index b5b7bae947b82277e1c9dd8a34eddf758cfac026..446518f02e16db6c01989c97d732d0b464e0f081 100644 (file)
--- a/src/game/Doom2DF.lpr
+++ b/src/game/Doom2DF.lpr
{$IFDEF USE_SDL}
SDL,
+ {$IFDEF USE_SDLMIXER}
+ SDL_mixer,
+ {$ENDIF}
{$ENDIF}
{$IFDEF USE_SDL2}
SDL2 in '../lib/sdl2/sdl2.pas',
SDL2_mixer in '../lib/sdl2/SDL2_mixer.pas',
{$ENDIF}
{$ENDIF}
+{$IFDEF USE_SYSSTUB}
+ {$IFDEF USE_SDLMIXER}
+ SDL2 in '../lib/sdl2/sdl2.pas',
+ SDL2_mixer in '../lib/sdl2/SDL2_mixer.pas',
+ {$ENDIF}
+{$ENDIF}
{$IFDEF USE_OPENAL}
AL in '../lib/openal/al.pas',
diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 5fc22fa018c259b594338a0df0fa089adce3572b..68a06725be44bc6a09c866a23cc415a39205b2d6 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL2)}
{$ERROR Only one system driver must be selected!}
{$ENDIF}
+ {$IFDEF USE_SDLMIXER}
+ {$ERROR SDL_mixer not supported with SDL 1.2.x}
+ {$ENDIF}
{$ELSEIF DEFINED(USE_SDL2)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL)}
{$ERROR Only one system driver must be selected!}