Explorar o código

openAl error: show error code

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
90e41fb02f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/snd/openal/Driver.hx

+ 1 - 1
hxd/snd/openal/Driver.hx

@@ -148,7 +148,7 @@ class Driver implements hxd.snd.Driver {
 		AL.sourceQueueBuffers(source.inst, 1, bytes);
 
 		if (AL.getError() != AL.NO_ERROR)
-			throw "Failed to queue buffers : format differs";
+			throw "Failed to queue buffers: " + StringTools.hex(AL.getError());
 
 		if (AL.getSourcei(source.inst, AL.SOURCE_STATE) == AL.STOPPED) {
 			if (sampleStart > 0) {