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