소스 검색

oops, fixup missing return in distortion coefficients

James Sarrett 8 년 전
부모
커밋
85a167b52e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/openhmd.c

+ 2 - 2
src/openhmd.c

@@ -322,13 +322,13 @@ static int ohmd_device_getf_unp(ohmd_device* device, ohmd_float_value type, floa
 		for (int i = 0; i < 4; i++) {
 			out[i] = device->properties.universal_distortion_k[i];
 		}
-		break;
+		return OHMD_S_OK;
 	}
 	case OHMD_UNIVERSAL_ABERRATION_K: {
 		for (int i = 0; i < 3; i++) {
 			out[i] = device->properties.universal_aberration_k[i];
 		}
-		break;
+		return OHMD_S_OK;
 	}
 	default:
 		return device->getf(device, type, out);