]> git.tdb.fi Git - libs/gl.git/blobdiff - source/rendertarget.cpp
Add another constructor to RenderTarget to resolve an ambiguity
[libs/gl.git] / source / rendertarget.cpp
index 239180f5e52b9032807a6a9943ecf468e736bc18..ea8bb0c887d0cfc1f4fb85e721851fe375f10d36 100644 (file)
@@ -95,6 +95,11 @@ PixelFormat get_output_pixelformat(unsigned char o)
 }
 
 
+RenderTarget::RenderTarget(unsigned w, unsigned h, RenderOutput o)
+{
+       init(w, h, 0, o);
+}
+
 RenderTarget::RenderTarget(unsigned w, unsigned h, const RenderTargetFormat &f)
 {
        init(w, h, 0, f);