Skip to content

Commit e77e273

Browse files
authored
Update copyright year and revert formatting
1 parent d9f1fd8 commit e77e273

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2025 jMonkeyEngine
2+
* Copyright (c) 2009-2026 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -129,7 +129,7 @@ public GLRenderer(GL gl, GLExt glext, GLFbo glfbo) {
129129
this.glext = glext;
130130
this.texUtil = new TextureUtil(gl, gl2, glext);
131131
}
132-
132+
133133
/**
134134
* Enable/Disable default automatic generation of mipmaps for framebuffers
135135
* @param v Default is true
@@ -159,14 +159,14 @@ public void pushDebugGroup(String name) {
159159
}
160160
}
161161

162-
162+
163163

164164
@Override
165165
public Statistics getStatistics() {
166166
return statistics;
167167
}
168168

169-
@Override
169+
@Override
170170
public EnumSet<Caps> getCaps() {
171171
return caps;
172172
}
@@ -223,7 +223,7 @@ private void loadCapabilitiesES() {
223223
String version = gl.glGetString(GL.GL_VERSION);
224224
int oglVer = extractVersion(version);
225225
if (isWebGL(version)) {
226-
caps.add(Caps.WebGL);
226+
caps.add(Caps.WebGL);
227227
}
228228
caps.add(Caps.GLSL100);
229229
caps.add(Caps.OpenGLES20);
@@ -711,7 +711,7 @@ public void initialize() {
711711
}else if(gl instanceof GLES_30){
712712
((GLES_30)gl).glGenVertexArrays(intBuf16);
713713
int vaoId = intBuf16.get(0);
714-
((GLES_30)gl).glBindVertexArray(vaoId);
714+
((GLES_30)gl).glBindVertexArray(vaoId);
715715
} else{
716716
throw new UnsupportedOperationException("Core profile not supported");
717717
}
@@ -1290,7 +1290,7 @@ private boolean isValidNumber(FloatBuffer fb) {
12901290
}
12911291
return true;
12921292
}
1293-
1293+
12941294
private boolean isValidNumber(Vector2f v) {
12951295
return isValidNumber(v.x) && isValidNumber(v.y);
12961296
}
@@ -1455,7 +1455,7 @@ protected void updateShaderBufferBlock(final Shader shader, final ShaderBufferBl
14551455

14561456
final BufferObject bufferObject = bufferBlock.getBufferObject();
14571457
final BufferType bufferType = bufferBlock.getType();
1458-
1458+
14591459

14601460
if (bufferObject.isUpdateNeeded()) {
14611461
if (bufferType == BufferType.ShaderStorageBufferObject) {
@@ -1485,7 +1485,7 @@ protected void updateShaderBufferBlock(final Shader shader, final ShaderBufferBl
14851485
}
14861486
if (bufferBlock.getLocation() != NativeObject.INVALID_ID) {
14871487
gl3.glUniformBlockBinding(shaderId, bufferBlock.getLocation(), bindingPoint);
1488-
}
1488+
}
14891489
}
14901490
break;
14911491
}
@@ -1615,7 +1615,7 @@ public void updateShaderSourceData(ShaderSource source) {
16151615
}
16161616

16171617
}
1618-
1618+
16191619
if (linearizeSrgbImages) {
16201620
stringBuf.append("#define SRGB 1\n");
16211621
}
@@ -1748,7 +1748,7 @@ public void updateShaderData(Shader shader) {
17481748
public void setShader(Shader shader) {
17491749
if (shader == null) {
17501750
throw new IllegalArgumentException("Shader cannot be null");
1751-
} else {
1751+
} else {
17521752
if (shader.isUpdateNeeded()) {
17531753
updateShaderData(shader);
17541754
}
@@ -2128,12 +2128,12 @@ public void setReadDrawBuffers(FrameBuffer fb) {
21282128
final int MRT_OFF = 100;
21292129

21302130
if (fb != null) {
2131-
2131+
21322132
if (fb.getNumColorBuffers() == 0) {
21332133
// make sure to select NONE as draw buf
21342134
// no color buffer attached.
2135-
gl2.glDrawBuffer(GL.GL_NONE);
2136-
gl2.glReadBuffer(GL.GL_NONE);
2135+
gl2.glDrawBuffer(GL.GL_NONE);
2136+
gl2.glReadBuffer(GL.GL_NONE);
21372137
} else {
21382138
if (fb.getNumColorBuffers() > limits.get(Limits.FrameBufferAttachments)) {
21392139
throw new RendererException("Framebuffer has more color "
@@ -2245,7 +2245,7 @@ private void readFrameBufferWithGLFormat(FrameBuffer fb, ByteBuffer byteBuf, int
22452245
}
22462246

22472247
setFrameBuffer(fb);
2248-
2248+
22492249

22502250
} else {
22512251
setFrameBuffer(null);
@@ -2724,7 +2724,7 @@ public void setTexture(int unit, Texture tex) throws TextureUnitException {
27242724
if (unit < 0 || unit >= RenderContext.maxTextureUnits) {
27252725
throw new TextureUnitException();
27262726
}
2727-
2727+
27282728
Image image = tex.getImage();
27292729
if (image.isUpdateNeeded() || (image.isGeneratedMipmapsRequired() && !image.isMipmapsGenerated())) {
27302730
// Check NPOT requirements
@@ -2755,7 +2755,7 @@ public void setTexture(int unit, Texture tex) throws TextureUnitException {
27552755
if (tex.getName() != null) glext.glObjectLabel(GL.GL_TEXTURE, tex.getImage().getId(), tex.getName());
27562756
}
27572757
}
2758-
2758+
27592759
@Override
27602760
public void setTextureImage(int unit, TextureImage tex) throws TextureUnitException {
27612761
if (unit < 0 || unit >= RenderContext.maxTextureUnits) {
@@ -2768,7 +2768,7 @@ public void setTextureImage(int unit, TextureImage tex) throws TextureUnitExcept
27682768
tex.bindImage(gl4, texUtil, unit);
27692769
}
27702770
}
2771-
2771+
27722772
@Override
27732773
public void setUniformBufferObject(int bindingPoint, BufferObject bufferObject) {
27742774
if (bufferObject.isUpdateNeeded()) {
@@ -3493,10 +3493,10 @@ public void setMainFrameBufferSrgb(boolean enableSrgb) {
34933493

34943494
if (enableSrgb) {
34953495
gl.glEnable(GLExt.GL_FRAMEBUFFER_SRGB_EXT);
3496-
logger.log(Level.FINER, "SRGB FrameBuffer enabled (Gamma Correction)");
3496+
logger.log(Level.FINER, "sRGB FrameBuffer enabled (Gamma Correction)");
34973497
} else {
34983498
gl.glDisable(GLExt.GL_FRAMEBUFFER_SRGB_EXT);
3499-
logger.log(Level.FINER, "SRGB FrameBuffer disabled (Gamma Correction)");
3499+
logger.log(Level.FINER, "sRGB FrameBuffer disabled (Gamma Correction)");
35003500
}
35013501
}
35023502

0 commit comments

Comments
 (0)