(int buf)
| 1967 | } |
| 1968 | |
| 1969 | @Override |
| 1970 | public void drawBuffer(int buf) { |
| 1971 | if (gl2x != null) { |
| 1972 | gl2x.glDrawBuffer(buf); |
| 1973 | } else if (gl3 != null) { |
| 1974 | gl3.glDrawBuffer(buf); |
| 1975 | } else if (gl3es3 != null) { |
| 1976 | IntBuffer intBuffer = IntBuffer.allocate(1); |
| 1977 | intBuffer.put(buf); |
| 1978 | intBuffer.rewind(); |
| 1979 | gl3es3.glDrawBuffers(1, intBuffer); |
| 1980 | } else { |
| 1981 | throw new RuntimeException(String.format(MISSING_GLFUNC_ERROR, "glDrawBuffer()")); |
| 1982 | } |
| 1983 | } |
| 1984 | } |
no test coverage detected