Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.cpp
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Line(s) | |||||
323 | 323 | | |||
324 | AbstractEglTexture::AbstractEglTexture(SceneOpenGLTexture *texture, AbstractEglBackend *backend) | 324 | AbstractEglTexture::AbstractEglTexture(SceneOpenGLTexture *texture, AbstractEglBackend *backend) | ||
325 | : SceneOpenGLTexturePrivate() | 325 | : SceneOpenGLTexturePrivate() | ||
326 | , q(texture) | 326 | , q(texture) | ||
327 | , m_backend(backend) | 327 | , m_backend(backend) | ||
328 | , m_image(EGL_NO_IMAGE_KHR) | 328 | , m_image(EGL_NO_IMAGE_KHR) | ||
329 | { | 329 | { | ||
330 | m_target = GL_TEXTURE_2D; | 330 | m_target = GL_TEXTURE_2D; | ||
331 | m_canUseMipmaps = true; | ||||
331 | } | 332 | } | ||
332 | 333 | | |||
333 | AbstractEglTexture::~AbstractEglTexture() | 334 | AbstractEglTexture::~AbstractEglTexture() | ||
334 | { | 335 | { | ||
335 | if (m_image != EGL_NO_IMAGE_KHR) { | 336 | if (m_image != EGL_NO_IMAGE_KHR) { | ||
336 | eglDestroyImageKHR(m_backend->eglDisplay(), m_image); | 337 | eglDestroyImageKHR(m_backend->eglDisplay(), m_image); | ||
337 | } | 338 | } | ||
338 | } | 339 | } | ||
▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines |