From e07a71368b1f65fe849f636512ff1fb94e62499e Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sat, 27 Jan 2007 15:25:53 +0000 Subject: [PATCH] possible fix to dshow with shaders off. Originally committed to SVN as r903. --- aegisub/video_provider_dshow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/video_provider_dshow.cpp b/aegisub/video_provider_dshow.cpp index b912e3c6b..b67d19f61 100644 --- a/aegisub/video_provider_dshow.cpp +++ b/aegisub/video_provider_dshow.cpp @@ -295,7 +295,7 @@ HRESULT DirectShowVideoProvider::OpenVideo(wxString _filename) { // Set allowed types for sink unsigned int types = IVS_RGB24 | IVS_RGB32; - if (OpenGLWrapper::ShadersAvailable() && !Options.AsBool(_T("Video Use Pixel Shaders"))) types = types | IVS_YV12; + if (OpenGLWrapper::UseShaders()) types = types | IVS_YV12; sink->SetAllowedTypes(types); // Pass the event to sink, so it gets set when a frame is available