OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef1a624
)
egl_android: Minor fixes to image surface.
author
Chia-I Wu
<olvaffe@gmail.com>
Thu, 24 Sep 2009 04:52:34 +0000
(12:52 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Thu, 24 Sep 2009 04:53:50 +0000
(12:53 +0800)
src/egl/drivers/android/droid_intel.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/android/droid_intel.c
b/src/egl/drivers/android/droid_intel.c
index
3b1afba
..
070b270
100644
(file)
--- a/
src/egl/drivers/android/droid_intel.c
+++ b/
src/egl/drivers/android/droid_intel.c
@@
-117,6
+117,10
@@
intel_get_native_buffer(struct droid_backend *backend,
{
struct droid_surface_intel *isurf = lookup_surface(surf);
+ /* non-window surface is single-buffered */
+ if (isurf->type != INTEL_SURFACE_TYPE_WINDOW)
+ return NULL;
+
if (!isurf->native_buffer.name)
return NULL;
@@
-355,6
+359,7
@@
intel_get_surface_buffers(struct droid_backend *backend,
if (isurf->type == INTEL_SURFACE_TYPE_IMAGE &&
att == __DRI_BUFFER_FRONT_LEFT) {
+ /* return native buffer */
buffers[num] = isurf->native_buffer;
buffers[num].attachment = att;
handles[num] = 0;