Commit d5e732764b7165ba5355805a3efa1596f1e78a4a

  • avatar
  • Chia-I Wu <olvaffe @gm…l.com>
  • Thu Sep 24 06:53:50 CEST 2009
egl_android: Minor fixes to image surface.
  
117117{
118118 struct droid_surface_intel *isurf = lookup_surface(surf);
119119
120 /* non-window surface is single-buffered */
121 if (isurf->type != INTEL_SURFACE_TYPE_WINDOW)
122 return NULL;
123
120124 if (!isurf->native_buffer.name)
121125 return NULL;
122126
359359
360360 if (isurf->type == INTEL_SURFACE_TYPE_IMAGE &&
361361 att == __DRI_BUFFER_FRONT_LEFT) {
362 /* return native buffer */
362363 buffers[num] = isurf->native_buffer;
363364 buffers[num].attachment = att;
364365 handles[num] = 0;