()
| 385 | glBindTexture(specification.target, s.name); |
| 386 | |
| 387 | Runnable m = postDrawQueue.getAndSet(null); |
| 388 | if (m != null) m.run(); |
| 389 | |
| 390 | boundCount++; |
| 391 | |
| 392 | return true; |
| 393 | } |
| 394 | |
| 395 | public int getOpenGLNameInCurrentContext() { |
| 396 | State s = GraphicsContext.get(this); |
| 397 | if (s == null) throw new IllegalArgumentException("No state in this context"); |
| 398 | |
| 399 | return s.name; |
| 400 | } |
| 401 | |
| 402 | |
| 403 | public int getOpenGLNameInContext(GraphicsContext context) { |
| 404 | State s = context.lookup(this); |
| 405 | if (s == null) throw new IllegalArgumentException("No state in this context"); |
nothing calls this directly
no test coverage detected