OpenSubdiv: Fix wrong topology refiner cast

This commit is contained in:
Sergey Sharybin 2018-07-10 14:37:34 +02:00
parent c17cb50ae2
commit d0920fba16
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include <opensubdiv/osd/types.h>
#include "opensubdiv_intern.h"
#include "opensubdiv_topology_refiner.h"
#include "MEM_guardedalloc.h"
@ -341,7 +342,7 @@ OpenSubdiv_EvaluatorDescr *openSubdiv_createEvaluatorDescr(
int subsurf_level)
{
/* TODO(sergey): Look into re-using refiner with GLMesh. */
TopologyRefiner *refiner = (TopologyRefiner *)topology_refiner;
TopologyRefiner *refiner = topology_refiner->osd_refiner;
if(refiner == NULL) {
/* Happens on bad topology. */
return NULL;