Commit d5e732764b7165ba5355805a3efa1596f1e78a4a
egl_android: Minor fixes to image surface.
| |   |
| 117 | 117 | { |
| 118 | 118 | struct droid_surface_intel *isurf = lookup_surface(surf); |
| 119 | 119 | |
| /* non-window surface is single-buffered */ |
| if (isurf->type != INTEL_SURFACE_TYPE_WINDOW) |
| return NULL; |
|
| 120 | 124 | if (!isurf->native_buffer.name) |
| 121 | 125 | return NULL; |
| 122 | 126 | |
| … | … | |
| 359 | 359 | |
| 360 | 360 | if (isurf->type == INTEL_SURFACE_TYPE_IMAGE && |
| 361 | 361 | att == __DRI_BUFFER_FRONT_LEFT) { |
| /* return native buffer */ |
| 362 | 363 | buffers[num] = isurf->native_buffer; |
| 363 | 364 | buffers[num].attachment = att; |
| 364 | 365 | handles[num] = 0; |