filter-blur: Fix up some MSVC warnings

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2017-12-14 03:00:08 +01:00
parent 09d5ac4635
commit 6c4b8bbf12

View file

@ -67,7 +67,6 @@ static void GenerateGaussianKernelTextures() {
for (size_t n = 0; n < MaxKernelSize; n++) { for (size_t n = 0; n < MaxKernelSize; n++) {
size_t width = 2 + n; size_t width = 2 + n;
size_t radius = 1 + (1 + n) * 2;
// Generate Gaussian Gradient and calculate sum. // Generate Gaussian Gradient and calculate sum.
double_t sum = 0; double_t sum = 0;
@ -87,7 +86,7 @@ static void GenerateGaussianKernelTextures() {
const uint8_t** pdata = const_cast<const uint8_t**>(&data); const uint8_t** pdata = const_cast<const uint8_t**>(&data);
try { try {
std::shared_ptr<GS::Texture> tex = std::make_shared<GS::Texture>(textureBufferSize, 1, std::shared_ptr<GS::Texture> tex = std::make_shared<GS::Texture>((uint32_t)textureBufferSize, 1,
gs_color_format::GS_R32F, 1, pdata, 0); gs_color_format::GS_R32F, 1, pdata, 0);
g_gaussianKernels[n] = tex; g_gaussianKernels[n] = tex;
} catch (std::runtime_error ex) { } catch (std::runtime_error ex) {
@ -377,8 +376,6 @@ void Filter::Blur::Instance::video_render(gs_effect_t *effect) {
gs_ortho(0, (float)baseW, 0, (float)baseH, -1, 1); gs_ortho(0, (float)baseW, 0, (float)baseH, -1, 1);
// Clear to Black // Clear to Black
vec4 black;
vec4_zero(&black);
gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &black, 0, 0); gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &black, 0, 0);
// Set up camera stuff // Set up camera stuff