Hopefully fixed

experimental
zzuegg 10 years ago
parent a8b3407b46
commit 8d0c371796
  1. 59
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -465,7 +465,8 @@ public class GLRenderer implements Renderer {
if (logger.isLoggable(Level.FINE)) {
StringBuilder sb = new StringBuilder();
sb.append("Supported capabilities: \n");
for (Caps cap : caps) {
for (Caps cap : caps)
{
sb.append("\t").append(cap.toString()).append("\n");
}
logger.log(Level.FINE, sb.toString());
@ -538,11 +539,9 @@ public class GLRenderer implements Renderer {
invalidateState();
}
/**
* ******************************************************************\
* |* Render State *|
* \********************************************************************
*/
/*********************************************************************\
|* Render State *|
\*********************************************************************/
public void setDepthRange(float start, float end) {
gl.glDepthRange(start, end);
}
@ -819,11 +818,9 @@ public class GLRenderer implements Renderer {
}
}
/**
* ******************************************************************\
* |* Camera and World transforms *|
* \********************************************************************
*/
/*********************************************************************\
|* Camera and World transforms *|
\*********************************************************************/
public void setViewPort(int x, int y, int w, int h) {
if (x != vpX || vpY != y || vpW != w || vpH != h) {
gl.glViewport(x, y, w, h);
@ -865,11 +862,9 @@ public class GLRenderer implements Renderer {
gl.resetStats();
}
/**
* ******************************************************************\
* |* Shaders *|
* \********************************************************************
*/
/*********************************************************************\
|* Shaders *|
\*********************************************************************/
protected void updateUniformLocation(Shader shader, Uniform uniform) {
int loc = gl.glGetUniformLocation(shader.getId(), uniform.getName());
if (loc < 0) {
@ -1254,11 +1249,9 @@ public class GLRenderer implements Renderer {
shader.resetObject();
}
/**
* ******************************************************************\
* |* Framebuffers *|
* \********************************************************************
*/
/*********************************************************************\
|* Framebuffers *|
\*********************************************************************/
public void copyFrameBuffer(FrameBuffer src, FrameBuffer dst) {
copyFrameBuffer(src, dst, true);
}
@ -1706,11 +1699,9 @@ public class GLRenderer implements Renderer {
}
}
/**
* ******************************************************************\
* |* Textures *|
* \********************************************************************
*/
/*********************************************************************\
|* Textures *|
\*********************************************************************/
private int convertTextureType(Texture.Type type, int samples, int face) {
if (samples > 1 && !caps.contains(Caps.TextureMultisample)) {
throw new RendererException("Multisample textures are not supported" +
@ -2159,11 +2150,9 @@ public class GLRenderer implements Renderer {
}
}
/**
* ******************************************************************\
* |* Vertex Buffers and Attributes *|
* \********************************************************************
*/
/*********************************************************************\
|* Vertex Buffers and Attributes *|
\*********************************************************************/
private int convertUsage(Usage usage) {
switch (usage) {
case Static:
@ -2501,11 +2490,9 @@ public class GLRenderer implements Renderer {
}
}
/**
* ******************************************************************\
* |* Render Calls *|
* \********************************************************************
*/
/*********************************************************************\
|* Render Calls *|
\*********************************************************************/
public int convertElementMode(Mesh.Mode mode) {
switch (mode) {
case Points:

Loading…
Cancel
Save