| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1973,6 +1973,11 @@ public void drawBuffer(int buf) { | |||
| 1973 | 1973 | gl2x.glDrawBuffer(buf); | |
| 1974 | 1974 | } else if (gl3 != null) { | |
| 1975 | 1975 | gl3.glDrawBuffer(buf); | |
| 1976 | + } else if (gl3es3 != null) { | ||
| 1977 | + IntBuffer intBuffer = IntBuffer.allocate(1); | ||
| 1978 | + intBuffer.put(buf); | ||
| 1979 | + intBuffer.rewind(); | ||
| 1980 | + gl3es3.glDrawBuffers(1, intBuffer); | ||
| 1976 | 1981 | } else { | |
| 1977 | 1982 | throw new RuntimeException(String.format(MISSING_GLFUNC_ERROR, "glDrawBuffer()")); | |
| 1978 | 1983 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments