OpenSubdiv: Fix wrong topology refiner cast
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include <opensubdiv/osd/types.h>
|
#include <opensubdiv/osd/types.h>
|
||||||
|
|
||||||
#include "opensubdiv_intern.h"
|
#include "opensubdiv_intern.h"
|
||||||
|
#include "opensubdiv_topology_refiner.h"
|
||||||
|
|
||||||
#include "MEM_guardedalloc.h"
|
#include "MEM_guardedalloc.h"
|
||||||
|
|
||||||
@@ -341,7 +342,7 @@ OpenSubdiv_EvaluatorDescr *openSubdiv_createEvaluatorDescr(
|
|||||||
int subsurf_level)
|
int subsurf_level)
|
||||||
{
|
{
|
||||||
/* TODO(sergey): Look into re-using refiner with GLMesh. */
|
/* TODO(sergey): Look into re-using refiner with GLMesh. */
|
||||||
TopologyRefiner *refiner = (TopologyRefiner *)topology_refiner;
|
TopologyRefiner *refiner = topology_refiner->osd_refiner;
|
||||||
if(refiner == NULL) {
|
if(refiner == NULL) {
|
||||||
/* Happens on bad topology. */
|
/* Happens on bad topology. */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user