From: <ma...@us...> - 2010-05-24 22:35:05
|
Revision: 3349 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3349&view=rev Author: matzon Date: 2010-05-24 22:34:59 +0000 (Mon, 24 May 2010) Log Message: ----------- expose isEfxSupported Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/openal/EFXUtil.java Modified: trunk/LWJGL/src/java/org/lwjgl/openal/EFXUtil.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/openal/EFXUtil.java 2010-05-24 21:54:37 UTC (rev 3348) +++ trunk/LWJGL/src/java/org/lwjgl/openal/EFXUtil.java 2010-05-24 22:34:59 UTC (rev 3349) @@ -58,14 +58,11 @@ * @return True if ALC_EXT_EFX is supported, false if not. * @throws OpenALException If OpenAL has not been created yet. */ - private static boolean isEfxSupported() { + public static boolean isEfxSupported() { if (!AL.isCreated()) { throw new OpenALException("OpenAL has not been created."); } - if (ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME)) { - return true; - } - return false; + return ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |