Fix compile errors
This commit is contained in:
@@ -83,6 +83,10 @@ protected:
|
||||
|
||||
virtual void DestroyInternal() override;
|
||||
|
||||
void AttachTextureAsDestination(const QVariant &texture);
|
||||
|
||||
void DetachTextureAsDestination();
|
||||
|
||||
private:
|
||||
static GLint GetInternalFormat(PixelFormat format, int channel_layout);
|
||||
|
||||
@@ -90,10 +94,6 @@ private:
|
||||
|
||||
static GLenum GetPixelFormat(int channel_count);
|
||||
|
||||
void AttachTextureAsDestination(const QVariant &texture);
|
||||
|
||||
void DetachTextureAsDestination();
|
||||
|
||||
void PrepareInputTexture(GLenum target, Texture::Interpolation interp);
|
||||
|
||||
void ClearDestinationInternal(double r = 0.0, double g = 0.0,
|
||||
|
||||
@@ -350,10 +350,12 @@ void olive::plugin::PluginRenderer::RenderPlugin(TexturePtr src, olive::plugin::
|
||||
|
||||
OliveClipInstance *clip=dynamic_cast<plugin::OliveClipInstance *>(instance->getClip("Output"));
|
||||
if (!clip) {
|
||||
#ifdef OFX_SUPPORTS_OPENGLRENDER
|
||||
if (use_opengl) {
|
||||
DetachOutputTexture();
|
||||
instance->contextDetachedAction();
|
||||
}
|
||||
#endif
|
||||
instance->endRenderAction(0, numFramesToRender, 1.0, interactive, renderScale, true,interactive
|
||||
);
|
||||
return;
|
||||
|
||||
@@ -232,8 +232,8 @@ QString VideoParams::GetFormatName(PixelFormat format)
|
||||
break;
|
||||
}
|
||||
|
||||
return QCoreApplication::translate("VideoParams", "Unknown (0x%1)")
|
||||
.arg(format, 0, 16);
|
||||
return QCoreApplication::translate("VideoParams", "Unknown (0x%1)")
|
||||
.arg(static_cast<int>(format), 0, 16);
|
||||
}
|
||||
|
||||
int VideoParams::GetDividerForTargetResolution(int src_width, int src_height,
|
||||
|
||||
Reference in New Issue
Block a user