(thread uint64, s *api.GlobalState)
| 45 | } |
| 46 | |
| 47 | func getBoundFramebufferID(thread uint64, s *api.GlobalState) (FramebufferId, error) { |
| 48 | c := GetContext(s, thread) |
| 49 | if c.IsNil() { |
| 50 | return 0, fmt.Errorf("No OpenGL ES context") |
| 51 | } |
| 52 | if c.Bound().DrawFramebuffer().IsNil() { |
| 53 | return 0, fmt.Errorf("No framebuffer bound") |
| 54 | } |
| 55 | return c.Bound().DrawFramebuffer().GetID(), nil |
| 56 | } |
| 57 | |
| 58 | func (t *readFramebuffer) depth( |
| 59 | id api.CmdID, |
no test coverage detected