Modify BindTexture part for native image source with OES_EGL_image_external
Change-Id: I4a06f28931ee8fe54b86ffe2088d7689686977ad
// EXTERNAL INCLUDES
#include <dali/integration-api/debug.h>
+#include <dali/integration-api/gl-defines.h>
#include <cstring>
// INTERNAL INCLUDES
return SAMPLER_TYPE;
}
+int NativeImageSource::GetEglImageTextureTarget()
+{
+ return GL_TEXTURE_EXTERNAL_OES;
+}
+
} // namespace Adaptor
} // namespace internal
*/
const char* GetCustomSamplerTypename();
+ /**
+ * @copydoc Dali::NativeImageInterface::Extension::GetEglImageTextureTarget()
+ */
+ int GetEglImageTextureTarget();
+
private:
/**
*/
// INTERNAL INCLUDES
+
+// EXTERNAL INCLUDES
#include <dali/public-api/images/native-image-interface.h>
#include <dali/devel-api/images/native-image-interface-extension.h>
+#include <dali/integration-api/gl-defines.h>
namespace Dali
{
inline const char* GetCustomFragmentPreFix(){return "#extension GL_OES_EGL_image_external:require\n";}
inline const char* GetCustomSamplerTypename(){return "samplerExternalOES";}
+ inline int GetEglImageTextureTarget(){return GL_TEXTURE_EXTERNAL_OES;}
};
class DALI_IMPORT_API TestNativeImage : public Dali::NativeImageInterface