diff --git a/examples/deferred/main.cpp b/examples/deferred/main.cpp index 88dab2d6..17bd3f42 100644 --- a/examples/deferred/main.cpp +++ b/examples/deferred/main.cpp @@ -87,7 +87,7 @@ int main(int argc, char** argv) { framebuffer.clear(); reset_and_start_timer(); for (int j = 0; j < nframes; ++j) - ispc::RenderStatic(&input->header, &input->arrays, + ispc::RenderStatic(input->header, input->arrays, VISUALIZE_LIGHT_COUNT, framebuffer.r, framebuffer.g, framebuffer.b); double mcycles = get_elapsed_mcycles() / nframes; diff --git a/type.cpp b/type.cpp index fc2f74f4..ea61109d 100644 --- a/type.cpp +++ b/type.cpp @@ -2554,7 +2554,7 @@ ReferenceType::GetCDeclaration(const std::string &name) const { } else { std::string ret; - ret += targetType->GetCDeclaration("") + std::string(" *"); + ret += targetType->GetCDeclaration("") + std::string(" &"); if (lShouldPrintName(name)) ret += name; return ret;