26
26
import java .nio .ByteBuffer ;
27
27
import java .nio .FloatBuffer ;
28
28
29
- import org .lwjgl .opengl .EXTTextureFilterAnisotropic ;
30
- import org .lwjgl .opengl .GL11 ;
31
- import org .lwjgl .opengl .GL13 ;
32
- import org .lwjgl .opengl .GL14 ;
33
- import org .lwjgl .util .glu .GLU ;
34
-
35
29
import com .flowpowered .caustic .api .data .VertexAttribute .DataType ;
36
30
import com .flowpowered .caustic .api .gl .Texture ;
37
31
import com .flowpowered .caustic .api .util .CausticUtil ;
38
32
import com .flowpowered .caustic .lwjgl .LWJGLUtil ;
39
33
import com .flowpowered .math .vector .Vector4f ;
40
34
35
+ import org .lwjgl .opengl .EXTTextureFilterAnisotropic ;
36
+ import org .lwjgl .opengl .GL11 ;
37
+ import org .lwjgl .opengl .GL13 ;
38
+ import org .lwjgl .opengl .GL14 ;
39
+ import org .lwjgl .util .glu .GLU ;
40
+
41
41
/**
42
42
* An OpenGL 2.0 implementation of {@link Texture}.
43
43
*
@@ -50,8 +50,8 @@ public class GL20Texture extends Texture {
50
50
// The min filter, to check if we need mip maps
51
51
protected FilterMode minFilter = FilterMode .NEAREST_MIPMAP_LINEAR ;
52
52
// Texture image dimensions
53
- protected int width = 1 ;
54
- protected int height = 1 ;
53
+ protected int width = 0 ;
54
+ protected int height = 0 ;
55
55
56
56
@ Override
57
57
public void create () {
0 commit comments