aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/DummyRenderer.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-19 17:13:14 +0200
committerSven Gothel <[email protected]>2012-10-19 17:13:14 +0200
commit0d353c8bec9cc0c9f3dc6326177f3022c920f677 (patch)
tree984e3e4bf884142edfd0c3a2b27cf9b66029bcf2 /src/jake2/render/DummyRenderer.java
parent7b18dfedf6c04f77a6032539f8b70d434375d139 (diff)
Fix/Enhance NEWT ScreenMode (FS) integration, simplify NEWTWin creation
- Only list unique resolutions - Use List<ScreenMode> - Properly deactivateGLContext()/activateGLContext() for setMode(..) Further: - JoglES2Driver: Claim to have pointExt (FFP emul will follow up)
Diffstat (limited to 'src/jake2/render/DummyRenderer.java')
-rw-r--r--src/jake2/render/DummyRenderer.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jake2/render/DummyRenderer.java b/src/jake2/render/DummyRenderer.java
index 73d05a6..2bc2c2e 100644
--- a/src/jake2/render/DummyRenderer.java
+++ b/src/jake2/render/DummyRenderer.java
@@ -7,6 +7,9 @@
package jake2.render;
+import java.util.ArrayList;
+import java.util.List;
+
import javax.media.nativewindow.util.Dimension;
import com.jogamp.newt.ScreenMode;
@@ -170,8 +173,8 @@ public class DummyRenderer implements refexport_t {
/* (non-Javadoc)
* @see jake2.client.refexport_t#getModeList()
*/
- public ScreenMode[] getModeList() {
- return null;
+ public List<ScreenMode> getModeList() {
+ return new ArrayList<ScreenMode>();
}
/* (non-Javadoc)