X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Ftizen%2Fnative-image-source-impl-tizen.cpp;h=e98ddae43c8233201779d1150ce8e7f97f0b66ab;hb=5c0150919de142cf925654b3f8750aca558977cc;hp=16a5720441f870df4835b950b512fec152c36859;hpb=2bb1a2483fd6733fce4e52bbe4e5b414899caf8e;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp index 16a5720..e98ddae 100644 --- a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp +++ b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp @@ -38,7 +38,8 @@ namespace Adaptor { namespace { -const char* SAMPLER_TYPE = "samplerExternalOES"; +const char* FRAGMENT_PREFIX = "#extension GL_OES_EGL_image_external:require\n"; +const char* SAMPLER_TYPE = "samplerExternalOES"; // clang-format off tbm_format FORMATS_BLENDING_REQUIRED[] = { @@ -74,8 +75,7 @@ NativeImageSourceTizen* NativeImageSourceTizen::New(uint32_t width, uint32_t hei } NativeImageSourceTizen::NativeImageSourceTizen(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) -: mCustomFragmentPrefix(), - mWidth(width), +: mWidth(width), mHeight(height), mOwnTbmSurface(false), mTbmSurface(NULL), @@ -94,8 +94,6 @@ NativeImageSourceTizen::NativeImageSourceTizen(uint32_t width, uint32_t height, GraphicsInterface* graphics = &(Adaptor::GetImplementation(Adaptor::Get()).GetGraphicsInterface()); mEglGraphics = static_cast(graphics); - mCustomFragmentPrefix = mEglGraphics->GetEglImageExtensionString(); - mTbmSurface = GetSurfaceFromAny(nativeImageSource); if(mTbmSurface != NULL) @@ -464,7 +462,7 @@ void NativeImageSourceTizen::PrepareTexture() const char* NativeImageSourceTizen::GetCustomFragmentPrefix() const { - return mCustomFragmentPrefix; + return FRAGMENT_PREFIX; } const char* NativeImageSourceTizen::GetCustomSamplerTypename() const