(int obj, String name)
| 3215 | } |
| 3216 | |
| 3217 | private static boolean printLogInfo(int obj, String name) |
| 3218 | { |
| 3219 | IntBuffer intbuffer = BufferUtils.createIntBuffer(1); |
| 3220 | ARBShaderObjects.glGetObjectParameterARB(obj, ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB, (IntBuffer)intbuffer); |
| 3221 | int i = intbuffer.get(); |
| 3222 | |
| 3223 | if (i > 1) |
| 3224 | { |
| 3225 | ByteBuffer bytebuffer = BufferUtils.createByteBuffer(i); |
| 3226 | intbuffer.flip(); |
| 3227 | ARBShaderObjects.glGetInfoLogARB(obj, intbuffer, bytebuffer); |
| 3228 | byte[] abyte = new byte[i]; |
| 3229 | bytebuffer.get(abyte); |
| 3230 | |
| 3231 | if (abyte[i - 1] == 0) |
| 3232 | { |
| 3233 | abyte[i - 1] = 10; |
| 3234 | } |
| 3235 | |
| 3236 | String s = new String(abyte, Charsets.US_ASCII); |
| 3237 | s = StrUtils.trim(s, " \n\r\t"); |
| 3238 | SMCLog.info("Info log: " + name + "\n" + s); |
| 3239 | return false; |
| 3240 | } |
| 3241 | else |
| 3242 | { |
| 3243 | return true; |
| 3244 | } |
| 3245 | } |
| 3246 | |
| 3247 | private static boolean printShaderLogInfo(int shader, String name, List<String> listFiles) |
| 3248 | { |
no test coverage detected